Skip to main content

WebSocket

info

This class is only available on ServerScripts

The WebSockets class provides a WebSocket interface for game instances to use to implement continuous connectivity with a 3rd party service.

Instance Properties

Property NameProperty TypeDescription
IsOpenboolReturns true if the connection to the WebSocket server is alive

Instance Methods

Method NameReturn TypeDescription
CreatevoidCreates a WebSocket Instance associated with the WebSocket object. This is not static!
OpenvoidOpens the WebSocket connection
SendvoidSends a message to the WebSocket server
ClosevoidCloses the WebSocket connection