Search
Preparing search index...
The search index is not available
@nestjs/websockets
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
WebSocketsController
Class WebSocketsController
Hierarchy
WebSocketsController
Index
Constructors
constructor
Properties
config
context
Creator
metadata
Explorer
socket
Server
Provider
Methods
assign
Server
ToProperties
get
Connection
Handler
merge
Gateway
And
Server
pick
Result
subscribe
Connection
Event
subscribe
Disconnect
Event
subscribe
Events
subscribe
Init
Event
subscribe
Messages
subscribe
ToServer
Events
Constructors
constructor
new
Web
Sockets
Controller
(
socketServerProvider
:
SocketServerProvider
, config
:
ApplicationConfig
, contextCreator
:
WsContextCreator
)
:
WebSocketsController
Parameters
socketServerProvider:
SocketServerProvider
config:
ApplicationConfig
contextCreator:
WsContextCreator
Returns
WebSocketsController
Properties
Private
Readonly
config
config
:
ApplicationConfig
Private
Readonly
context
Creator
context
Creator
:
WsContextCreator
Private
Readonly
metadata
Explorer
metadata
Explorer
:
GatewayMetadataExplorer
= new GatewayMetadataExplorer(new MetadataScanner(),)
Private
Readonly
socket
Server
Provider
socket
Server
Provider
:
SocketServerProvider
Methods
Private
assign
Server
ToProperties
assign
Server
ToProperties<T>
(
instance
:
NestGateway
, server
:
object
)
:
void
Type parameters
T =
any
Parameters
instance:
NestGateway
server:
object
Returns
void
get
Connection
Handler
get
Connection
Handler
(
context
:
WebSocketsController
, instance
:
NestGateway
, subscribersMap
:
MessageMappingProperties
[]
, disconnect
:
Subject
<
any
>
, connection
:
Subject
<
any
>
)
:
(Anonymous function)
Parameters
context:
WebSocketsController
instance:
NestGateway
subscribersMap:
MessageMappingProperties
[]
disconnect:
Subject
<
any
>
connection:
Subject
<
any
>
Returns
(Anonymous function)
merge
Gateway
And
Server
merge
Gateway
And
Server
(
instance
:
NestGateway
, metatype
:
Type
<
unknown
>
|
Function
, moduleKey
:
string
)
:
void
Parameters
instance:
NestGateway
metatype:
Type
<
unknown
>
|
Function
moduleKey:
string
Returns
void
pick
Result
pick
Result
(
defferedResult
:
Promise
<
any
>
)
:
Promise
<
Observable
<
any
>
>
Parameters
defferedResult:
Promise
<
any
>
Returns
Promise
<
Observable
<
any
>
>
subscribe
Connection
Event
subscribe
Connection
Event
(
instance
:
NestGateway
, event
:
Subject
<
any
>
)
:
void
Parameters
instance:
NestGateway
event:
Subject
<
any
>
Returns
void
subscribe
Disconnect
Event
subscribe
Disconnect
Event
(
instance
:
NestGateway
, event
:
Subject
<
any
>
)
:
void
Parameters
instance:
NestGateway
event:
Subject
<
any
>
Returns
void
subscribe
Events
subscribe
Events
(
instance
:
NestGateway
, subscribersMap
:
MessageMappingProperties
[]
, observableServer
:
SocketEventsHost
)
:
void
Parameters
instance:
NestGateway
subscribersMap:
MessageMappingProperties
[]
observableServer:
SocketEventsHost
Returns
void
subscribe
Init
Event
subscribe
Init
Event
(
instance
:
NestGateway
, event
:
Subject
<
any
>
)
:
void
Parameters
instance:
NestGateway
event:
Subject
<
any
>
Returns
void
subscribe
Messages
subscribe
Messages<T>
(
subscribersMap
:
MessageMappingProperties
[]
, client
:
T
, instance
:
NestGateway
)
:
void
Type parameters
T =
any
Parameters
subscribersMap:
MessageMappingProperties
[]
client:
T
instance:
NestGateway
Returns
void
subscribe
ToServer
Events
subscribe
ToServer
Events<T>
(
instance
:
NestGateway
, options
:
T
, port
:
number
, moduleKey
:
string
)
:
void
Type parameters
T
:
GatewayMetadata
Parameters
instance:
NestGateway
options:
T
port:
number
moduleKey:
string
Returns
void
Globals
Web
Sockets
Controller
constructor
config
context
Creator
metadata
Explorer
socket
Server
Provider
assign
Server
ToProperties
get
Connection
Handler
merge
Gateway
And
Server
pick
Result
subscribe
Connection
Event
subscribe
Disconnect
Event
subscribe
Events
subscribe
Init
Event
subscribe
Messages
subscribe
ToServer
Events
Generated using
TypeDoc