Discuss this help topic in SecureBlackbox Forum
WebSocket: Send data to client
Upon accepting a WebSocket connection, as described in the corresponding article, your application will receive an instance of TElWebSocketServer class. You could use its SendData() method to send either the data contained in either an array of bytes, or a stream).
To send a piece of textual data, TElWebSocketServer.SendText() method could be used. Note, that the text is converted to UTF8 encoding when sent.