Socket client provider for @mdf.js based on socket.io-client.
Using npm:
npm install @mdf.js/socket-client-provider
Using yarn:
yarn add @mdf.js/socket-client-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 connected to the server, error
if the provider is running but disconnected from the server.pass
if the status is running
, warn
if the status is stopped
, fail
if the status is error
.'http://localhost:8080'
): URL of the server'/socket.io'
): Path where the server will listen['websocket']
): Transports to useundefined
): CA file pathundefined
): Client cert file pathundefined
): Client key file pathCopyright 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.