interface RemoteChannelServer.Constructors
Defines the static RemoteChannelServer
API.
Methods
create
Resolves, if succesful, to a new RemoteChannelServer that can listen to client requests to create new channels.
create
Definition
create(config: {
port:
RemoteChannel.SimpleMessagePort
;
rcsChannelId?: string;
}): Promise<
RemoteChannelServer
>;
Parameters
Name | Type | Description |
---|---|---|
config | { port: RemoteChannel.SimpleMessagePort ; rcsChannelId?: string; } | the configuration for the RemoteChannelServer to be created: - port: the message port to communicate with the client - rcsChannelId: (optional) an alternative channel id to use for communication with the client |