get WebSocket working