Threads - TooTallNate/Java-WebSocket GitHub Wiki
Introduction
This library starts a number of threads, which are explained in the following section.
Thread spawned by the WebSocketClient
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
Thread spawned by the WebSocketServer
A WebSocketServerstarts 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