new Red5ProSharedObjectSocket()
Methods
-
close()
-
Request to close down the WebSocket connection.
-
init(configuration, id, capability) → {Promise}
-
Initialize the WebSocket connection based on configuration properties.
Parameters:
Name Type Default Description configurationObject Configuration object used in construction WebSocket endpoint URL based on properties.
idString Optional identifier for the shared object connection instance. Needs to be unique. Autogenerated if left undefined.
capabilityInteger 2 Optional capability enum for connection. 2 = Shared Object + WebSocket. 4 = Shared Object + RTC.
Returns:
Promise