Plugin which enables realtime two-way communication with the browser.
ISocket
is defined in the Telligent.Evolution.Extensibility.Sockets.Version1
namespace of Telligent.Evolution.Platform.dll
Definition
interface ISocket : IPlugin { string SocketName { get; } void SetController(ISocketController controller); }
Properties
Name | Type | Description | Default | Options |
---|---|---|---|---|
SocketName | string | Name of the socket as exposed to the automatically-generated client-side API. Should be one word. |
Methods
void SetController(ISocketController controller);
Sets the API controller which allows the plugin to both receive and push messages. Event handlers for receiving messages should be set in this method.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
controller | ISocketController | Controller | Required |