Synced with spray-websocket.