JSLib Reference Manual / Exports / ChannelEndpoint

Class: ChannelEndpoint#

ChannelEndpoint

Gives access to a Channel API (without needing to connect to socket)

Hierarchy#

Table of contents#

Constructors#

Properties#

Accessors#

Methods#

Constructors#

constructor#

new ChannelEndpoint(sbServer, key?, channelId?)

Parameters#

Name

Type

sbServer

SBServer

key?

JsonWebKey

channelId?

string

Overrides#

Channel.constructor

Properties#

admin#

admin: boolean = false

Inherited from#

Channel.admin


adminData#

Optional adminData: Dictionary<any>

Overrides#

Channel.adminData


channelReady#

channelReady: Promise<Channel>

Param

server to join

Param

key to use to join (optional)

Param

the Channel Name to find on that server (optional)

Inherited from#

Channel.channelReady


locked#

Optional locked: boolean = false

Inherited from#

Channel.locked


motd#

Optional motd: string = ''

Inherited from#

Channel.motd


owner#

owner: boolean = false

Inherited from#

Channel.owner


ready#

ready: Promise<SB384>

Inherited from#

Channel.ready


sb384Ready#

sb384Ready: Promise<SB384>

Inherited from#

Channel.sb384Ready


userName#

userName: string = ''

Inherited from#

Channel.userName


verifiedGuest#

verifiedGuest: boolean = false

Inherited from#

Channel.verifiedGuest

Accessors#

_id#

get _id(): string

Returns#

string

Inherited from#

Channel._id


api#

get api(): ChannelApi

Returns#

ChannelApi

Inherited from#

Channel.api


channelId#

get channelId(): undefined | string

Returns#

undefined | string

Inherited from#

Channel.channelId


channelSignKey#

get channelSignKey(): CryptoKey

Returns#

CryptoKey

Inherited from#

Channel.channelSignKey


exportable_privateKey#

get exportable_privateKey(): JsonWebKey

Returns#

JsonWebKey

Inherited from#

Channel.exportable_privateKey


exportable_pubKey#

get exportable_pubKey(): JsonWebKey

Returns#

JsonWebKey

Inherited from#

Channel.exportable_pubKey


keys#

get keys(): ChannelKeys

Returns#

ChannelKeys

Inherited from#

Channel.keys


onMessage#

set onMessage(_f): void

Parameters#

Name

Type

_f

CallableFunction

Returns#

void


ownerChannelId#

get ownerChannelId(): string

Returns#

string

Inherited from#

Channel.ownerChannelId


privateKey#

get privateKey(): CryptoKey

Returns#

CryptoKey

Inherited from#

Channel.privateKey


readyFlag#

get readyFlag(): boolean

Returns#

boolean

Inherited from#

Channel.readyFlag


sbServer#

get sbServer(): SBServer

Returns#

SBServer

Inherited from#

Channel.sbServer

Methods#

send#

send(_m, _messageType?): Promise<string>

Parameters#

Name

Type

_m

string | SBMessage

_messageType?

"string" | "SBMessage"

Returns#

Promise<string>

Overrides#

Channel.send