statianzo / Fleck

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

How to stop this websocket service? #339

Open ruyudeshuileling opened 3 months ago

ruyudeshuileling commented 3 months ago

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

None of them work

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