statianzo / Fleck

C# Websocket Implementation
MIT License
2.3k stars 585 forks source link

How to stop this websocket service? #339

Open ruyudeshuileling opened 8 months ago

ruyudeshuileling commented 8 months ago

server.ListenerSocket.Close(); server.ListenerSocket.Dispose(); or server.Dispose();

None of them work

AdrianBathurst commented 8 months ago

When I restart the websocket service, I close all existing socket connections then call server.Dispose() and that works ok. server.Dispose() in turn calls ListenerSocket.Dispose() so no need to call that.