Interface: WebSocketPluginOptions
Represents the options for a plugin, including the plugin type.
This interface is used to provide configuration options when registering a plugin.
The plugin property specifies the type of the plugin being registered.
Extends
Extended by
Properties
adapter
adapter:
WebSocketAdapterClass
The WebSocket adapter to use. Express or Fastify are supported.
connectTimeout?
optionalconnectTimeout?:number
The number of ms before disconnecting a client that has not successfully joined a namespace.
path?
optionalpath?:string
It is the name of the path that is captured on the server side.
plugin
plugin:
PluginType
Inherited from
port?
optionalport?:number
The port on which the WebSocket server will listen. Default is 3000.
serveClient?
optionalserveClient?:boolean
Whether to serve the client files. Default is true. If set to false, the client files will not be served.
useHttpPluginServer
useHttpPluginServer:
boolean
Whether to use the built-in HTTP server for WebSockets. Default is false. If set to true, the WebSocket server will be created using the built-in HTTP server.