Skip to content
Marcel Prestel edited this page Mar 5, 2018 · 2 revisions

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 detection
  • WebSocketWriteThread-*- Thread to write the messages to the other endpoint
  • WebSocketConnectReadThread-* - 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 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