Table of Contents

TTMSFNCWebSocketMessageDriver Class

Base class for drivers that monitor a set of client connections for incoming data and dispatch it. Maintains the connection list and the poll interval; concrete drivers implement how reading is scheduled.

API unit family: TMSFNCWebSocketClient

Syntax

TTMSFNCWebSocketMessageDriver = class

Properties

Name Description
Interval Poll interval in milliseconds the driver waits for data between checks.

Methods

Name Description
AddClient Registers a connection so the driver monitors it for incoming data.
Execute Starts the driver so it begins monitoring the registered connections.
RemoveClient Stops monitoring the given connection.
Terminate Stops the driver and releases any resources used while running.

Events

Name Description
OnDriverError Fires when an error occurs while the driver reads from a monitored connection.