WebSocket: Receive data from server
Once the WebSocket has been created and connected, you have an instance of TElSocket and TElWebSocketClient. Use it's TElSocket.CanReceive() method to determine, that there's data available to be received. Once the data is available, call TElWebSocketClient.DataAvailable() method.
TElWebSocketClient will read the data from the socket and if there's anything to pass to the application, TElWebSocketClient.OnBinaryData or TElWebSocketClient.OnTextData events are fired. Your application can handle these events to actually receive the data.