Skip to main content

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.

Definition

create(config: {
      port: RemoteChannel.SimpleMessagePort;
      rcsChannelId?: string;
    }): Promise<RemoteChannelServer>;

Parameters

NameTypeDescription
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