Search
Preparing search index...
The search index is not available
yuuko
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
yuuko
Eris
BrowserWebSocket
Class BrowserWebSocket
Hierarchy
EventEmitter
BrowserWebSocket
Index
Constructors
constructor
Properties
ready
State
CLOSED
CLOSING
CONNECTING
OPEN
default
Max
Listeners
Methods
add
Listener
close
emit
event
Names
get
Max
Listeners
listener
Count
listeners
off
on
once
prepend
Listener
prepend
Once
Listener
raw
Listeners
remove
All
Listeners
remove
Event
Listener
remove
Listener
send
set
Max
Listeners
terminate
listener
Count
Constructors
constructor
new
Browser
Web
Socket
(
url
:
string
)
:
BrowserWebSocket
Parameters
url:
string
Returns
BrowserWebSocket
Properties
ready
State
ready
State
:
number
Static
CLOSED
CLOSED
:
3
Static
CLOSING
CLOSING
:
2
Static
CONNECTING
CONNECTING
:
0
Static
OPEN
OPEN
:
1
Static
default
Max
Listeners
default
Max
Listeners
:
number
Methods
add
Listener
add
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
BrowserWebSocket
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
BrowserWebSocket
close
close
(
code
?:
number
, reason
?:
string
)
:
void
Parameters
Optional
code:
number
Optional
reason:
string
Returns
void
emit
emit
(
event
:
string
|
symbol
,
...
args
:
any
[]
)
:
boolean
Parameters
event:
string
|
symbol
Rest
...
args:
any
[]
Returns
boolean
event
Names
event
Names
(
)
:
(
string
|
symbol
)
[]
Returns
(
string
|
symbol
)
[]
get
Max
Listeners
get
Max
Listeners
(
)
:
number
Returns
number
listener
Count
listener
Count
(
type
:
string
|
symbol
)
:
number
Parameters
type:
string
|
symbol
Returns
number
listeners
listeners
(
event
:
string
|
symbol
)
:
Function
[]
Parameters
event:
string
|
symbol
Returns
Function
[]
off
off
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
BrowserWebSocket
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
BrowserWebSocket
on
on
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
BrowserWebSocket
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
BrowserWebSocket
once
once
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
BrowserWebSocket
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
BrowserWebSocket
prepend
Listener
prepend
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
BrowserWebSocket
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
BrowserWebSocket
prepend
Once
Listener
prepend
Once
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
BrowserWebSocket
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
BrowserWebSocket
raw
Listeners
raw
Listeners
(
event
:
string
|
symbol
)
:
Function
[]
Parameters
event:
string
|
symbol
Returns
Function
[]
remove
All
Listeners
remove
All
Listeners
(
event
?:
string
|
symbol
)
:
BrowserWebSocket
Parameters
Optional
event:
string
|
symbol
Returns
BrowserWebSocket
remove
Event
Listener
remove
Event
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
BrowserWebSocket
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
BrowserWebSocket
remove
Listener
remove
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
BrowserWebSocket
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
BrowserWebSocket
send
send
(
data
:
string
|
ArrayBuffer
|
SharedArrayBuffer
|
Blob
|
ArrayBufferView
)
:
void
Parameters
data:
string
|
ArrayBuffer
|
SharedArrayBuffer
|
Blob
|
ArrayBufferView
Returns
void
set
Max
Listeners
set
Max
Listeners
(
n
:
number
)
:
BrowserWebSocket
Parameters
n:
number
Returns
BrowserWebSocket
terminate
terminate
(
)
:
void
Returns
void
Static
listener
Count
listener
Count
(
emitter
:
EventEmitter
, event
:
string
|
symbol
)
:
number
deprecated
since v4.0.0
Parameters
emitter:
EventEmitter
event:
string
|
symbol
Returns
number
Exports
Externals
Eris
Browser
Web
Socket
constructor
ready
State
CLOSED
CLOSING
CONNECTING
OPEN
default
Max
Listeners
add
Listener
close
emit
event
Names
get
Max
Listeners
listener
Count
listeners
off
on
once
prepend
Listener
prepend
Once
Listener
raw
Listeners
remove
All
Listeners
remove
Event
Listener
remove
Listener
send
set
Max
Listeners
terminate
listener
Count
Generated using
TypeDoc
since v4.0.0