Search
Preparing search index...
The search index is not available
pinus
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
UDPConnector
Class UDPConnector
Hierarchy
EventEmitter
UDPConnector
Implements
IConnector
Index
Constructors
constructor
Properties
clients
decode
encode
handshake
heartbeat
host
opts
port
socket
tcp
Server
type
default
Max
Listeners
Methods
add
Listener
emit
event
Names
get
Max
Listeners
listener
Count
listeners
on
once
prepend
Listener
prepend
Once
Listener
remove
All
Listeners
remove
Listener
set
Max
Listeners
start
stop
listener
Count
Constructors
constructor
new UDPConnector
(
port
:
number
, host
:
string
, opts
:
UDPConnectorOptions
)
:
UDPConnector
Parameters
port:
number
host:
string
opts:
UDPConnectorOptions
Returns
UDPConnector
Properties
clients
clients
:
object
Type declaration
[
key:
string
]:
any
decode
decode
:
decode
= coder.decode
encode
encode
:
encode
= coder.encode
handshake
handshake
:
HandshakeCommand
heartbeat
heartbeat
:
HeartbeatCommand
host
host
:
string
opts
opts
:
any
port
port
:
number
socket
socket
:
Socket
tcp
Server
tcp
Server
:
Server
type
type
:
SocketType
Static
default
Max
Listeners
default
Max
Listeners
:
number
Methods
add
Listener
add
Listener
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
emit
emit
(
event
:
string
|
symbol
,
...
args
:
any
[]
)
:
boolean
Parameters
event:
string
|
symbol
Rest
...
args:
any
[]
Returns
boolean
event
Names
event
Names
(
)
:
Array
<
string
|
symbol
>
Returns
Array
<
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
[]
on
on
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
once
once
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
prepend
Listener
prepend
Listener
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
prepend
Once
Listener
prepend
Once
Listener
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
remove
All
Listeners
remove
All
Listeners
(
event
?:
string
|
symbol
)
:
this
Parameters
Optional
event:
string
|
symbol
Returns
this
remove
Listener
remove
Listener
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
this
set
Max
Listeners
set
Max
Listeners
(
n
:
number
)
:
this
Parameters
n:
number
Returns
this
start
start
(
cb
:
function
)
:
void
Parameters
cb:
function
(
)
:
void
Returns
void
Returns
void
stop
stop
(
force
:
boolean
, cb
:
function
)
:
void
Parameters
force:
boolean
cb:
function
(
)
:
void
Returns
void
Returns
void
Static
listener
Count
listener
Count
(
emitter
:
EventEmitter
, event
:
string
|
symbol
)
:
number
Parameters
emitter:
EventEmitter
event:
string
|
symbol
Returns
number
Globals
UDPConnector
constructor
clients
decode
encode
handshake
heartbeat
host
opts
port
socket
tcp
Server
type
default
Max
Listeners
add
Listener
emit
event
Names
get
Max
Listeners
listener
Count
listeners
on
once
prepend
Listener
prepend
Once
Listener
remove
All
Listeners
remove
Listener
set
Max
Listeners
start
stop
listener
Count