MCPcopy Create free account
hub / github.com/JoaoLopesF/RemoteDebug / begin

Method begin

src/RemoteDebugWS.cpp:84–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82// Initialize the socket server
83
84void RemoteDebugWS::begin(RemoteDebugWSCallbacks* callbacks) {
85
86 // Initialize web socket (RemoteDebugApp)
87
88 WebSocketServer.begin(); // start the websocket server
89 WebSocketServer.onEvent(webSocketEvent); // if there's an incomming websocket message, go to function 'webSocketEvent'
90
91 // Set callbacks
92
93 _callbacks = callbacks;
94
95 // Debug
96
97 D("socket server started");
98
99}
100
101// Finalize the socket server
102

Callers

nothing calls this directly

Calls 1

onEventMethod · 0.45

Tested by

no test coverage detected