8000 WebSocketHandler needs to know the calling WebSocket · Issue #329 · nkolban/esp32-snippets · GitHub
[go: up one dir, main page]

Skip to content
WebSocketHandler needs to know the calling WebSocket #329
Closed
@squonk11

Description

@squonk11

I am now trying to do something useful with the WebSocketHandler. For this I implemented a MyWebSocketHandler. Inside the onMessageHandler I would like to send something back to the browser. But the WebSocketHandler class does not know the WebSocket. So, shouldn't there be a function like WebSocketHandler::setWebSocket(WebSocket *pWebSocket);
in order to be able to use pWebSocket->send(...) inside the onMessage handler? Or do you have another solution for this?

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0