Open licentia88 opened 6 months ago
I have exactly the same problem only when app deployed on IIS. Client tells, that server reset the stream, but server tells, that client has been disconnected. @licentia88 may be you have any updates?
Hi, unfortunately, I couldn't fix the issue on the IIS side, but I came up with a workaround on the client side.
I created a method that runs every minute using a scheduler (similar to a ping).
You can check out a template project that shows how to implement MagicOnion and other Cysharp projects. If you look at MagicHubClientBase.cs in Client/Hubs/Base, you'll find the solution I came up with.
Here's the link to the repo: https://github.com/licentia88/MagicOnionGenericTemplate
Hello, I'm using magiconion hubs in my blazor project, I have a hub implementation for a Ticket System, the goal is to perform crud operations on tickets and display the data for all company members. therefore my TicketHub is registered as a Singleton Service
I connect to the server on appstart and use the same service in the hub.
.My hub is derived from a base class that has the below methods, and use the below configuration for simplicity sake I'm not sharing all the code, but in case anyone asks for it I can gladly share.
The Problem: after deploying the app in IIS and launch it after a while when I try to use the Hub Methods I get an exception telling me that StreamingHub has already been disconnected from the server.
I also want to mention that I do not manually disconnect /dispose the connection at anypoint.
My code declaration is below: