websocket-sharp

Class that implements IDisposable without Dispose function?

◇◆丶佛笑我妖孽 提交于 2019-12-20 07:26:20
问题 I just pulled in WebSocketSharp via nuget. It's class WebSocket implements IDisposable but doesn't seem to have a Dispose method. How is that possible? I thought if you implement an interface you also have to implement all of it's properties/methods. 回答1: On GitHub in source: #region Explicit Interface Implementations /// <summary> /// Closes the WebSocket connection, and releases all associated resources. /// </summary> /// <remarks> /// This method closes the connection with <see cref=

How to host websocket-sharp server on IIS

故事扮演 提交于 2019-12-11 10:24:34
问题 I have a hostname like dev.websocketserver.com. Now I want to host my websocket-server on this hostname in IIS, so that my socket address becomes ws://dev.websocketserver.com/Echo What should I create WCF service, windows service? Socket will listen on port that is not already in use. So if I host my WCF service under host dev.websocketserver.com and in Global.asax create a server then it will not get bound with Port 80. Can anyone tell me what should be the basic architecture for hosting

WebSocket secure connection self signed certificate

放肆的年华 提交于 2019-12-09 17:17:54
问题 The goal is a web application that exchanges information with an C# application that is installed on the user's pc. The client application is the websocket server and the browser is the websocket client. In the end the websocket client in the user's browser is created persistently via Angular and the application is running on the pc and doing some things. The C# library used is WebSocket-Sharp. The websocket client is normal javascript. Obviously this connection happens only local so the

WebSocket secure connection self signed certificate

蓝咒 提交于 2019-12-04 05:45:35
The goal is a web application that exchanges information with an C# application that is installed on the user's pc. The client application is the websocket server and the browser is the websocket client. In the end the websocket client in the user's browser is created persistently via Angular and the application is running on the pc and doing some things. The C# library used is WebSocket-Sharp . The websocket client is normal javascript. Obviously this connection happens only local so the client connects to localhost. As the website is secured via HTTPS the websocket has to be secured too. For

Class that implements IDisposable without Dispose function?

一笑奈何 提交于 2019-12-02 10:25:28
I just pulled in WebSocketSharp via nuget. It's class WebSocket implements IDisposable but doesn't seem to have a Dispose method. How is that possible? I thought if you implement an interface you also have to implement all of it's properties/methods. On GitHub in source : #region Explicit Interface Implementations /// <summary> /// Closes the WebSocket connection, and releases all associated resources. /// </summary> /// <remarks> /// This method closes the connection with <see cref="CloseStatusCode.Away"/>. /// </remarks> void IDisposable.Dispose () { close (new CloseEventArgs