Skip to content

[SignalR/Java clients] - null object reference on transportenum #29765

@NunoPontes

Description

@NunoPontes

Is your feature request related to a problem? Please describe.

I'm trying to build an Android app that receives messages from SignalR.
The problem that I am having is that after the server timeout, which the default is 30 seconds, I won't receive anymore information and have to reconnect manually, meanwhile I might have missed data.

Example: I am trying to do a list that gets a new item when signalR sends the object to the app, however the interval between messages isn't constant, it can be 30 seconds or 1 hour.

Describe the solution you'd like

I would like a flag where we can disable server timeout, meaning that while we don't stop the connection the client is always listening for messages from SignalR. Perhaps the setServerTimeout can receive a null, and when it does it never timesout

Additional context

When we try to reconnect manually we might lose information.
I'm currently using version 3.1.11, because the 5.0.2 causes my app to constantly crash and this is the only version where I can make SignalR work

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions