statianzo / Fleck

C# Websocket Implementation
MIT License
2.29k stars 583 forks source link

How to stop this websocket service? #339

Open ruyudeshuileling opened 7 months ago

ruyudeshuileling commented 7 months ago

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

None of them work

AdrianBathurst commented 7 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.