When trying to implement the websocket server Safari and Chrome error on the first connection saying unexpected NULL status in payload I tracked this down to the WebSocketClient class implementation of sendData() and broadcastData() as they are not the same as the WebSocketServer definitions.
I made the changes in my fork linked below
jwestbrook@8bad53e