Fix WebSocket object