Socket
Book a DemoInstallSign in
Socket

eventric-remote-socketio-endpoint

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eventric-remote-socketio-endpoint

eventric socketio remote endpoint

1.0.0
latest
Source
npmnpm
Version published
Weekly downloads
6
20%
Maintainers
1
Weekly downloads
 
Created
Source

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:

  • ioInstance: an instance of a Socket.IO server; if not given, a new one will be spawned automatically
  • 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.

Keywords

eventric

FAQs

Package last updated on 29 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.