WebSocket Engine
Runs a WebSocket server that processes each binary message it receives through the graph and replies with the graph's output. Messages carry mono 32-bit float samples, and each reply has the same number of frames as the request. The server listens once start is called.
Configuration
Inherits configuration from its parent, Engine.
port
Type: Int
Default: 0
Port the WebSocket server listens on. When not set, a free port from 12346-12446 is assigned; read the port property to find it. May also be set later through the property of the same name.
sampleRate
Type: Int
Default: 0
Sample rate of the audio clients send and receive, in Hz. When not set, 16000 Hz is used. May also be set later through the property of the same name.
Properties
Inherits properties from its parents, Engine, SwitchboardObject.
hasConnectedClients (Read only)
Type: Boolean
Whether at least one WebSocket client is connected.
port
Type: Int
Default: 0
Port the WebSocket server listens on. A change takes effect at the next start.
sampleRate
Type: Int
Default: 16000
Sample rate of the audio clients send and receive, in Hz, used for both directions.
Actions
Inherits actions from its parents, Engine, SwitchboardObject.
This object does not provide any additional actions.
Events
This object does not provide any events.