Exemplo n.º 1
0
 public WebSocket(Behavior Client)
 {
     this.Client            = Client;
     Client.OnMessageEvent += (e) => Recived(e);
     Client.Closing        += () => IsConnected = false;
     Client.Error          += () => Client.Close();
     this.IsConnected       = true;
     Client.StartReciving();
 }
Exemplo n.º 2
0
 protected override async Task Inner_Disconnect()
 {
     Client.Close();
 }