1.0.0 • Published 7 years ago

eventric-remote-socketio-endpoint v1.0.0

Weekly downloads
64
License
MIT
Repository
github
Last release
7 years ago

eventric Socket.IO remote endpoint Build Status

This module is a Socket.IO/Websocket based adapter for the eventric remote endpoint interface. Use it in combination with eventric-remote-socketio-client in order to communicate with remote contexts via Websockets (client to server and server to server).

API

initialize(options)

Initializes the endpoint. Returns a promise which resolves when the initialization is finished. Two optional options may be passed into the function:

  1. ioInstance: an instance of a Socket.IO server; if not given, a new one will be spawned automatically
  2. rpcRequestMiddleware(rpcRequest, socket): a middleware function for processing rpc requests; the function must return a Promise which can reject in order to cancel the RPC request

Note: The middleware can be used to enrich data of RPC requests or to perform some kind of access control / authorization.

1.0.0

7 years ago

0.7.2

8 years ago

0.7.1

9 years ago

0.7.0

9 years ago

0.6.0

9 years ago

0.5.0

9 years ago

0.4.1

9 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.2.0

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

10 years ago

0.0.21

10 years ago

0.0.20

10 years ago

0.0.19

10 years ago

0.0.18

10 years ago

0.0.17

10 years ago

0.0.16

10 years ago

0.0.15

10 years ago

0.0.14

10 years ago