Theodore T.

  • 2 questions asked
  • 2 answers
  • 0 best answers (0%)
  • How can I detect a websocket disconnection?

    I have a script that periodically sends websocket messages using Websocket Request. Is there any way to detect (and handle) the case when the websocket is disconnected, either...
    Theodore T.
    Theodore T.

    Theodore T.

    Level
    0
    22 / 100
    points
    Theodore T.
    Theodore T.

    Theodore T.

    Level
    0
    22 / 100
    points
    Thanks for the answer, I think this will work in my case. Just one clarification. When you say "try a new connection of the WebSocket channel", you mean add a copy of the...
  • Is there a way to send dynamic data in a websocket request?

    I have an asynchronous WebSocket Request, with "Text Data" as the type, as I want to send JSON, e.g. {"Id":100,"Type":42,"Body":{}}. Can one of the JSON fields (e.g. "Id") have...
    Theodore T.
    Theodore T.

    Theodore T.

    Level
    0
    22 / 100
    points
    Theodore T.
    Theodore T.

    Theodore T.

    Level
    0
    22 / 100
    points
    Hi, probably my question was not clear enough. "Id" is the name of the JSON field, 100 is the value of the JSON field. I want 100 to be taken from a variable. My websocket...