Commit Graph

16 Commits

Author SHA1 Message Date
Jesse ef6e3b8c3a Http server refactor (#593)
* 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
2025-09-20 14:05:23 +00:00
Chomp 4a081a7ac3 Updated class param formatting 2025-08-11 21:08:55 +01:00
sp-tarkov-bot b14b74bf24 Format Style Fixes 2025-07-28 19:39:29 +00:00
Chomp 856fa0633d List to IEnumerable changes
Removed use of tolist()
2025-07-25 15:57:57 +01:00
clodanSPT 1af50bfd34 Application cleanup (#485)
* 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>
2025-07-18 16:21:24 +01:00
refringe 6e01428b2b .NET Format Style Fixes 2025-06-18 17:09:20 +00:00
Chomp e596974d07 Cleaned up usings 2025-06-14 16:43:24 +01:00
Jesse 2ff286e5ed Handle closure of WebSockets better, improve formatting of code (#383)
* Handle closure of WebSockets better, improve formatting of code

* Update comment
2025-06-09 08:56:07 +01:00
Chomp 9dd62471e8 Fixed typo 2025-06-05 09:51:30 +01:00
Chomp 7ec684aa7e Fixed issue with websockets not reconnecting post-raid
We no longer remove old websocket connections

Converted `SptWebSocketConnectionHandler` to use a primary constructor

Removed websocket monitor from `SptWebSocketConnectionHandler`
2025-05-29 11:55:30 +01:00
clodanSPT 1968afccba Fixes and logs (#301)
* 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>
2025-05-29 11:06:32 +01:00
clodanSPT a58065871f Removed ConcurrentDictionary in favor of locked dictionary, and added… (#287)
* 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>
2025-05-28 11:42:56 +01:00
Alex 1499627d3c DI completely reworked to keep status of singletons on multi type components 2025-05-06 10:52:22 +01:00
CWX 7c7297f63c Code cleanup and format 2025-04-22 14:49:05 +01:00
CWX 8032358a5e Fix ragman messages from fleamarket 2025-04-20 10:26:47 +01:00
clodan 270f095413 renamed projects and namespaces 2025-03-07 13:16:43 +00:00