Fix issue with websocket messages that are send directly on connect