Пример #1
0
 private StompClient(WebSocketPath path, List <SharpStomp.Websocket.Cookie> cookies)
 {
     socket = new WebSocket(path.AsConnectionString());
     foreach (SharpStomp.Websocket.Cookie cookie in cookies)
     {
         socket.SetCookie(cookie.cookie);
     }
     socket.OnMessage += onMessage;
 }
Пример #2
0
 public static StompClient Over(WebSocketPath path, List <SharpStomp.Websocket.Cookie> cookies)
 {
     return(new StompClient(path, cookies));
 }