Javascript websocket client for 6px