Volt

WebSocket

The WebSocket library provides functions for creating WebSocket connections for real-time bidirectional communication.

Overview

WebSockets allow you to:

  • Establish persistent connections to servers
  • Send and receive messages in real-time

Constructor

FunctionDescription
WebSocket.connectCreate a new WebSocket connection

Properties

PropertyTypeDescription
OnMessageSignalFired when a message is received
OnCloseSignalFired when the connection closes

Methods

MethodDescription
WebSocket:SendSend a string message
WebSocket:CloseClose the connection

On this page