Fix for pull request #73, it's because 'The TcpListener.Stop method also closes the underlying Socket, and creates a new Socket for the TcpListener. If you set any properties on the underlying Socket prior to calling the Stop method, those properties will not carry over to the new Socket.'
This commit is contained in:
@@ -39,6 +39,9 @@ namespace Example2
|
||||
// Not to remove inactive clients periodically
|
||||
//wssv.KeepClean = false;
|
||||
|
||||
// To resolve to wait for socket in TIME_WAIT state
|
||||
//wssv.ReuseAddress = true;
|
||||
|
||||
// Adding WebSocket services
|
||||
wssv.AddWebSocketService<Echo> ("/Echo");
|
||||
wssv.AddWebSocketService<Chat> ("/Chat");
|
||||
|
Reference in New Issue
Block a user