public WebSocketDispatcher(Uri locationUri, ServerEtiquette etiquette, IWebSocketHandlerFactory handlerFactory, X509Certificate serverCertificate) { if (locationUri == null) { throw new ArgumentNullException("locationUri"); } if (handlerFactory == null) { throw new ArgumentNullException("handlerFactory"); } this.handlerFactory = handlerFactory; clientsByMetadata = new Dictionary <string, List <IWebSocket> >(); listener = new WebSocketListener(locationUri, etiquette, serverCertificate); listener.Start(OnHandShaken); }
public WebSocketDispatcher(Uri locationUri, ServerEtiquette etiquette, IWebSocketHandlerFactory handlerFactory) : this(locationUri, etiquette, handlerFactory, null) { }