ReceiveMessages
This is a private asynchronous method that continuously listens for incoming messages from the WebSocket server.
This feature is deprecated and will be unsupported.
What it does: Reads incoming WebSocket messages and processes them. If the message is a text message, it extracts the sender and the content of the message and adds it to the Messages
collection.
How to use it: This method is called internally within ConnectToServer
, and you generally don't need to call it manually.
Last updated