- Notifications
You must be signed in to change notification settings - Fork 2.6k
Threads
JustDoom edited this page Jan 27, 2026
·
3 revisions
This library starts a number of threads, which are explained in the following section.
A WebSocketClient starts the following threads:
WebSocketTimer- Timer for the lost connection detectionWebSocketWriteThread-*- Thread to write the messages to the other endpointWebSocketConnectReadThread-*- Thread to connect and read the messages from the other endpoint
A WebSocketServer starts the following threads:
WebSocketTimer- Timer for the lost connection detectionWebSocketWorker-*- Thread for decoding incoming messages (number of threads depends on the number of decoders you are using)WebSocketSelector-*- Thread in which the server selector is running