TScWebSocketOnMessageEvent = procedure (Sender: TObject; const Data: TBytes; MessageType: TScWebSocketMessageType; EndOfMessage: boolean) of object;
property OnMessage: TScWebSocketOnMessageEvent;
The OnMessage event occurs if a data message was received from the WebSocket server.
If at least one message frame was received, the event occurs immediately, without waiting for the end of the message.
|•||Sender - the object that raised the event;|
|•||Data - an array of bytes, which contains the body of the received message;|
|•||MessageType - types of a data message received from the server.|
|•||EndOfMessage - returns the status whether the message was read till the end. If the message was not read till the end, the parameter is set to False.|