public void OnAuthResponse(AuthResponse response) { OnAuthResponseMessage authResponse = new OnAuthResponseMessage(); authResponse.payload = response; WebSocket.Send(Serialize(authResponse)); }