kuzzle-plugin-websocket

1.0.10 • Public • Published

Build Status codecov.io Dependency Status

Protocol plugin: websocket

Protocol plugin adding websocket support to Kuzzle.

Requires Kuzzle 1.0.0-RC8 or higher.

Manifest

This plugin doesn't need any right.

Configuration

You can override the configuration usign the CLI utilitie in Kuzzle:

Name Default value Type Description
port 7513 Integer > 1024 Network port to open

How to use

Kuzzle may send a multitude of messages to a client, either to respond to multiple asynchronous requests, or to notify events on client's subscriptions.
To allow a client to link a response to a request or to a subscription, Kuzzle normally features a room system for protocols allowing it.

Since WebSocket messages do not support this feature natively, all messages sent through this protocol contain an additional room attribute at the root of the message structure. Clients connecting to Kuzzle using this protocol must use this field to dispatch incoming messages to the right parts of an application.

This room attribute is either:

  • a request requestId, for request responses
  • a channel (see Kuzzle subscriptions), for notifications on subscriptions

How to create a plugin

See Kuzzle documentation about plugin for more information about how to create your own plugin.

About Kuzzle

For UI and linked objects developers, Kuzzle is an open-source solution that handles all the data management (CRUD, real-time storage, search, high-level features, etc).

Kuzzle features are accessible through a secured API. It can be used through a large choice of protocols such as REST, Websocket or Message Queuing protocols.

Package Sidebar

Install

npm i kuzzle-plugin-websocket

Weekly Downloads

0

Version

1.0.10

License

Apache-2.0

Last publish

Collaborators

  • kuzzle