Search
Preparing search index...
The search index is not available
uhst
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"RelaySocket"
RelaySocket
Class RelaySocket
Hierarchy
RelaySocket
Implements
UhstSocket
Index
Constructors
constructor
Properties
_ee
_remote
Id
debug
relay
Client
relay
Message
Stream
send
Url
token
Accessors
remote
Id
Methods
close
handle
Message
handle
Relay
Error
handle
Relay
Event
init
Client
off
on
once
send
Constructors
constructor
new
Relay
Socket
(
relayClient
:
UhstRelayClient
, params
:
HostSocketParams
|
ClientSocketParams
, debug
:
boolean
)
:
RelaySocket
Parameters
relayClient:
UhstRelayClient
params:
HostSocketParams
|
ClientSocketParams
debug:
boolean
Returns
RelaySocket
Properties
Private
_ee
_ee
:
EventEmitter
<
SocketEventSet
>
= new EventEmitter<SocketEventSet>()
Private
_remote
Id
_remote
Id
:
string
Private
debug
debug
:
boolean
Private
relay
Client
relay
Client
:
UhstRelayClient
Private
Optional
relay
Message
Stream
relay
Message
Stream
:
MessageStream
Private
Optional
send
Url
send
Url
:
undefined
|
string
Private
token
token
:
string
Accessors
remote
Id
get
remoteId
(
)
:
string
Returns
string
Methods
close
close
(
)
:
void
Returns
void
handle
Message
handle
Message
(
message
:
Message
)
:
void
Parameters
message:
Message
Returns
void
handle
Relay
Error
handle
Relay
Error
(
)
:
void
Returns
void
handle
Relay
Event
handle
Relay
Event
(
event
:
RelayEvent
)
:
void
Parameters
event:
RelayEvent
Returns
void
Private
init
Client
init
Client
(
hostId
:
string
)
:
Promise
<
void
>
Parameters
hostId:
string
Returns
Promise
<
void
>
off
off<EventName>
(
eventName
:
EventName
, handler
:
SocketEventSet
[
EventName
]
)
:
void
Type parameters
EventName
:
keyof
SocketEventSet
Parameters
eventName:
EventName
handler:
SocketEventSet
[
EventName
]
Returns
void
on
on<EventName>
(
eventName
:
EventName
, handler
:
SocketEventSet
[
EventName
]
)
:
void
Type parameters
EventName
:
keyof
SocketEventSet
Parameters
eventName:
EventName
handler:
SocketEventSet
[
EventName
]
Returns
void
once
once<EventName>
(
eventName
:
EventName
, handler
:
SocketEventSet
[
EventName
]
)
:
void
Type parameters
EventName
:
keyof
SocketEventSet
Parameters
eventName:
EventName
handler:
SocketEventSet
[
EventName
]
Returns
void
send
send
(
message
:
string
)
:
Promise
<
any
>
send
(
message
:
Blob
)
:
Promise
<
any
>
send
(
message
:
ArrayBuffer
)
:
Promise
<
any
>
send
(
message
:
ArrayBufferView
)
:
Promise
<
any
>
Parameters
message:
string
Returns
Promise
<
any
>
Parameters
message:
Blob
Returns
Promise
<
any
>
Parameters
message:
ArrayBuffer
Returns
Promise
<
any
>
Parameters
message:
ArrayBufferView
Returns
Promise
<
any
>
Globals
"
Relay
Socket"
Relay
Socket
constructor
_ee
_remote
Id
debug
relay
Client
relay
Message
Stream
send
Url
token
remote
Id
close
handle
Message
handle
Relay
Error
handle
Relay
Event
init
Client
off
on
once
send
Generated using
TypeDoc