The .emit() method for websockets now works even before the socket is connected.