public void OnPreAuthResponse(PreAuthResponse response) { OnPreAuthResponseMessage preAuthResponse = new OnPreAuthResponseMessage(); preAuthResponse.payload = response; WebSocket.Send(Serialize(preAuthResponse)); }