Socket based Rpc Server
- Source:
- appFeatures/socketServer.js
Members
-
<static> type :string
-
This feature is loaded at plugin stage
Type:
- string
- Source:
- appFeatures/socketServer.js
Methods
-
<static> load_(appModule, servers)
-
Load the rpc Server
Parameters:
Name Type Description appModuleAppModule The app module object
serversArray.<ServerOptions> Rpc server config
- Source:
- appFeatures/socketServer.js
Type Definitions
-
ServerOptions
-
The socket server options.
Type:
- Object
- Source:
- appFeatures/socketServer.js
- See:
-
- https://socket.io/docs/server-api/ for more options
Properties:
Name Type Argument Default Description pathstring <optional>
/socket.io name of the path to capture
serveClientboolean <optional>
true whether to serve the client files
adapterAdapter the adapter to use. Defaults to an instance of the Adapter that ships with socket.io which is memory based. See socket.io-adapter
originsstring the allowed origins
parserParser the parser to use. Defaults to an instance of the Parser that ships with socket.io. See socket.io-parser