emit connect event after websocket handshake is complete