Fixed #226 - Eliminates ordering issues in the SyncMessage protocol

If not, the websocket has been closed unexpectedly on the client side.