CSHARP   37

XSocketsClient

Guest on 24th November 2022 01:33:07 AM

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using XSockets.Client;
  6.  
  7. namespace H_Man
  8. {
  9.   public class XSocketsClient
  10.   {
  11.     private XSocketClient client;
  12.  
  13.     public XSocketsClient()
  14.     {
  15.       this.client = new XSocketClient(Config.XSOCKET_SERVER_ENDPOINT, "*");
  16.       this.client.OnOpen += socket_OnOpen;
  17.       this.client.OnError += socket_OnError;
  18.       this.client.OnMessage += socket_OnMessage;
  19.     }
  20.  
  21.     private void Connect()
  22.     {
  23.       this.client.Open();
  24.     }
  25.  
  26.     private void socket_OnMessage(object sender, XSockets.Core.Common.Socket.Event.Arguments.TextArgs e)
  27.     {
  28.       throw new NotImplementedException();
  29.     }
  30.  
  31.     private void socket_OnError(object sender, XSockets.Core.Common.Socket.Event.Arguments.TextArgs e)
  32.     {
  33.       throw new NotImplementedException();
  34.     }
  35.  
  36.     private void socket_OnOpen(object sender, EventArgs e)
  37.     {
  38.       throw new NotImplementedException();
  39.     }
  40.   }
  41. }

Raw Paste


Login or Register to edit or fork this paste. It's free.