Back to product page

WebSocketSendText method


Sends text to WebSocket.

Syntax

  • Basic
object.WebSocketSendText (Text)
The WebSocketSendText(object,Text) syntax has these parts:
objectAn expression evaluating to an object of type WebUser
TextA string value that should be sent to WebSocket user.

Remarks

Use this method to send data to established websocket for this user. It can be used only after WebSocketConnect event was fired and you accepted the connection.

Since connection is full duplex, you can call this method anytime you wish, and data will be delivered to client side.

Platforms

Windows