Skip to content

Keep track if connection to streaming API is still working #429

Answered by PattaFeuFeu
seism0saurus asked this question in Q&A
Discussion options

You must be logged in to vote

Hi!

Is there any event, that is sent over the API in case of connection errors?
To my understanding an unhealthy connection should trigger some events, that are passed to my callback onEvent()-method, right?

Yes. If we receive a WebSocket failure, we propagate it to you via the WebSocketCallback’s onEvent method you would implement.

TechnicalEvent.Failure is the one you’re looking for then:

/**
* An error occurred during the websocket connection.
* This is a final event:
* No further calls to the [WebSocketCallback] emitting these events will be m…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by PattaFeuFeu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants