Make socket.emit() work before socket is connected.

A fix to make the .emit() method of any websocket object work even if the socket itself did not yet have time to connect.