WebSocket.exitEventLoop

Exits all running WebSocket.eventLoops next time they loop around. You can call this from a signal handler or another thread.

Please note they may not loop around to check the flag for several seconds. Any new event loops will exit immediately until all current ones are closed. Once all event loops are exited, the flag is cleared and you can start the loop again.

This function is likely to be deprecated in the future due to its quirks and imprecise name.

class WebSocket
static
void
exitEventLoop
()

Meta