Make console an event emitter and make websocket have an event emitter.
remove erronous parenthesis.