fixed some incompatibilities between WebSocket and WebSocketClient
fix this.socket.onopen