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; }
public static StompClient Over(WebSocketPath path, List <SharpStomp.Websocket.Cookie> cookies) { return(new StompClient(path, cookies)); }