eventric-remote-socketio-endpoint
eventric socketio remote endpoint
Last updated 4 years ago by efacilitation .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install eventric-remote-socketio-endpoint 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 1.0.0                                ...           latest (4 years ago)

21 Versions

  • 1.0.0                                ...           4 years ago
  • 0.7.2                                ...           5 years ago
  • 0.7.1                                ...           5 years ago
  • 0.7.0                                ...           5 years ago
  • 0.6.0                                ...           5 years ago
  • 0.5.0                                ...           5 years ago
  • 0.4.1                                ...           5 years ago
  • 0.3.1                                ...           5 years ago
  • 0.3.0                                ...           5 years ago
  • 0.2.0                                ...           5 years ago
  • 0.1.2                                ...           6 years ago
  • 0.1.1                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
  • 0.0.21                                ...           6 years ago
  • 0.0.20                                ...           6 years ago
  • 0.0.19                                ...           6 years ago
  • 0.0.18                                ...           6 years ago
  • 0.0.17                                ...           6 years ago
  • 0.0.16                                ...           6 years ago
  • 0.0.15                                ...           6 years ago
  • 0.0.14                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (15)
Dependents (2)

Copyright 2014 - 2016 © taobao.org |