Skip to content

question. websocket handle connection lost #1

@tedLiu0518

Description

@tedLiu0518

Hello, I tried to make your code work for another project and I found that the WebSocket event handler seems can't handle connection lost. I wonder what happens if my connection is suddenly lost while I am holding the button. It seems that because the server can't receive the stop message then the drone will continue running. I did some research and find that the ping pong method maybe useful. But I also noticed that there are only a few blogs & projects which use or mention this method. So I wondering whether I am totally wrong or maybe there is more elegant way to achieve that or websocket & esp32 is just not suitable for these kinds of work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions