JSLib Reference Manual / Exports / ChannelEndpoint
Class: ChannelEndpoint#
ChannelEndpoint
Gives access to a Channel API (without needing to connect to socket)
Hierarchy#
-
↳
ChannelEndpoint
Table of contents#
Constructors#
Properties#
Accessors#
Methods#
Constructors#
constructor#
• new ChannelEndpoint(sbServer, key?, channelId?)
Parameters#
Name |
Type |
|---|---|
|
|
|
|
|
|
Overrides#
Properties#
admin#
• admin: boolean = false
Inherited from#
adminData#
• Optional adminData: Dictionary<any>
Overrides#
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#
locked#
• Optional locked: boolean = false
Inherited from#
motd#
• Optional motd: string = ''
Inherited from#
owner#
• owner: boolean = false
Inherited from#
ready#
• ready: Promise<SB384>
Inherited from#
sb384Ready#
• sb384Ready: Promise<SB384>
Inherited from#
userName#
• userName: string = ''
Inherited from#
verifiedGuest#
• verifiedGuest: boolean = false
Inherited from#
Accessors#
_id#
• get _id(): string
Returns#
string
Inherited from#
Channel._id
api#
• get api(): ChannelApi
Returns#
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#
Inherited from#
Channel.keys
onMessage#
• set onMessage(_f): void
Parameters#
Name |
Type |
|---|---|
|
|
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#
Inherited from#
Channel.sbServer
Methods#
send#
▸ send(_m, _messageType?): Promise<string>
Parameters#
Name |
Type |
|---|---|
|
|
|
|
Returns#
Promise<string>