Socket server provider for @mdf.js based on socket.io.
Using npm:
npm install @mdf.js/socket-server-provider
Using yarn:
yarn add @mdf.js/socket-server-provider
Check information about @mdf.js providers in the documentation of the core module @mdf.js/core.
Checks included in the provider:
error
, running
, stopped
] based in the last ping event. stopped
if the provider is stopped or has not been initialized yet, running
if the provider is running and the server is listening and error
if the provider is running but the server is not listening.pass
if the status is running
, warn
if the status is stopped
, fail
if the status is error
.8080
): Port where the server will listen'localhost'
): Host where the server will listen'/socket.io'
): Path where the server will listentrue
): Enable the UI`/[\s\S]*\/`
): CORS origintrue
): CORS credentialsCopyright 2024 Mytra Control S.L. All rights reserved.
Use of this source code is governed by an MIT-style license that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.