* Refactor various parts of the HttpListener to support Blazor loading
* Add logging for WebSocket requests
* Add better handling for WebSockets not belonging to SPT
* Remove unecessary check
* Remove check as it's already handled earlier now
* Cleanup
* Set delegate
* Changed application to use background services and removed hacky http server startup
* Small improvements and method removals
* Removed Core dependency on Web application SDK
* Fixed wrong imported type
---------
Co-authored-by: Alex <clodanSPT@hotmail.com>
Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
We no longer remove old websocket connections
Converted `SptWebSocketConnectionHandler` to use a primary constructor
Removed websocket monitor from `SptWebSocketConnectionHandler`
* Added safety checks around dictionary lookups for Areas Stages
* Added lots of debug logs for websocket handling
* Removed debug comments
---------
Co-authored-by: Alex <alex@dm-me-for-questions.com>
* Removed ConcurrentDictionary in favor of locked dictionary, and added reconnection behaviour to OnConnection
* Refactored code to handle multiple ws connected at the same time and offer graceful disconnection of appropriate sockets
* removed unused usings
---------
Co-authored-by: Alex <clodanSPT@hotmail.com>
Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>