Interface: SocketIOWebSocketPluginOptions
An interface extending the base WebSocketPluginOptions to include additional configuration options specific to the Socket.IO WebSocket plugin.
Extends
Properties
adapter
adapter:
WebSocketAdapterClass
The WebSocket adapter to use. Express or Fastify are supported.
Inherited from
WebSocketPluginOptions.adapter
connectTimeout?
optionalconnectTimeout?:number
The number of ms before disconnecting a client that has not successfully joined a namespace.
Inherited from
WebSocketPluginOptions.connectTimeout
path?
optionalpath?:string
It is the name of the path that is captured on the server side.
Inherited from
plugin
plugin:
PluginType
Inherited from
port?
optionalport?:number
The port on which the WebSocket server will listen. Default is 3000.
Inherited from
serveClient?
optionalserveClient?:boolean
Whether to serve the client files. Default is true. If set to false, the client files will not be served.
Inherited from
WebSocketPluginOptions.serveClient
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.