The Red5 Pro Shared Object Socket
The Red5ProSharedObjectSocket
To establish a Shared Object connection when targeting an HTML-based client, a previously establish connection must be made and provided to the Shared Object instance. Though you can easily use a previously established connection from a streaming client you can also use the Red5ProSharedObjectSocket
class from the WebRTC SDK.
To instantiate and start a socket connection using the Red5ProSharedObjectSocket
class:
The
Red5ProSharedObjectSocket
class from the Red5 Pro WebRTC SDK is a proxy to an underlyingWebSocket
that provides convenience in communicating to and from the Red5 Pro Server.
Once the Red5ProSharedObjectSocket
connection is available, it is provided to a Red5ProSharedObject
instance – along with a shared object name – to establish a connection to the Remote Shared Object on the server:
For more information about the type of events and data provided, refer to the Shared Object Events section.