[0.0.11] Add events `socket.open`, `socket.error`, `socket.close`