Skip to content

enable and/or disable client websocket connection when desired ? #396

Open
@denden4444

Description

@denden4444

@ Links2004

Hi Markus

Thanks again for a great library.

Is it possible to invoke/enable the client to server connection when required ?
I need to :

  1. Connect to a server.
  2. Send the data
    Wait for ACKnowledgement from server
  3. Disable/destroy/end the connection

I noticed in the examples the connection gets created but not destroyed at all.
The websocket loop is run continuously it seems.
Did I miss something important ?

As mentioned above I only need it up for the duration of the communication and then it needs to be closed. It would be great to websocketClient.start and a websocketClient.stop.

I would appreciate any help , extra info and/or feedback.

Thank you kindly

Den

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions