-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Threads
Marcel Prestel edited this page Mar 5, 2018
·
2 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 detection -
WebSocketWriteThread-*
- Thread to write the messages to the other endpoint -
WebSocketConnectReadThread-*
- Thread to connect and read the messages from the other endpoint
A WebSocketServerstarts the following threads:
-
WebSocketTimer
- Timer for the lost connection detection -
WebSocketWorker-*
- 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