Search
Preparing search index...
The search index is not available
AncientSouls Documentation
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
"ancient-channels/src/lib/channel"
Channel
Class Channel<IEventsList>
Type parameters
IEventsList
:
IChannelEventsList
Hierarchy
IChannel
Channel
Indexable
[
key:
string
]:
any
Index
Constructors
constructor
Properties
emitter
getter
id
is
Destroyed
is
Reading
Methods
destroy
emit
generate
Id
get
got
off
on
once
ready
Constructors
Static
constructor
new
Channel
(
id
?:
string
)
:
any
Parameters
Optional
id:
string
Returns
any
Properties
Static
emitter
emitter
:
EventEmitter
Static
Optional
getter
getter
:
IChannelGetter
<
any
>
Static
id
id
:
string
Static
is
Destroyed
is
Destroyed
:
boolean
Static
is
Reading
is
Reading
:
boolean
Methods
Static
destroy
destroy
(
)
:
void
Returns
void
Static
emit
emit<IE>
(
eventName
:
IE
, data
:
IEventsList[IE]
)
:
this
Type parameters
IE
:
keyof IEventsList
Parameters
eventName:
IE
data:
IEventsList[IE]
Returns
this
Static
generate
Id
generate
Id
(
)
:
string
Returns
string
Static
get
get
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
Static
got
got
(
data
?:
Promise
<
any
>
|
any
)
:
void
Parameters
Optional
data:
Promise
<
any
>
|
any
Returns
void
Static
off
off<IE>
(
eventName
:
IE
, listener
:
function
)
:
this
Type parameters
IE
:
keyof IEventsList
Parameters
eventName:
IE
listener:
function
(
data
:
IEventsList[IE]
)
:
void
Parameters
data:
IEventsList[IE]
Returns
void
Returns
this
Static
on
on<IE>
(
eventName
:
IE
, listener
:
function
)
:
this
Type parameters
IE
:
keyof IEventsList
Parameters
eventName:
IE
listener:
function
(
data
:
IEventsList[IE]
)
:
void
Parameters
data:
IEventsList[IE]
Returns
void
Returns
this
Static
once
once<IE>
(
eventName
:
IE
, listener
:
function
)
:
this
Type parameters
IE
:
keyof IEventsList
Parameters
eventName:
IE
listener:
function
(
data
:
IEventsList[IE]
)
:
void
Parameters
data:
IEventsList[IE]
Returns
void
Returns
this
Static
ready
ready
(
)
:
void
Returns
void
Globals
"ancient-
channels/src/lib/channel"
Channel
constructor
emitter
getter
id
is
Destroyed
is
Reading
destroy
emit
generate
Id
get
got
off
on
once
ready
IChannel
IChannel
Events
List
IChannel
Getter
TChannel
Mixed
Channel
mixin
Generated using
TypeDoc