Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mole-rpc-transport-ws

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mole-rpc-transport-ws

WebSocket transport for Mole-RPC (JSON RPC library)

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

WebSocket Transport for Mole RPC (JSON RPC Library)

npm version Build Status Known Vulnerabilities

Mole-RPC is a tiny transport agnostic JSON-RPC 2.0 client and server which can work both in NodeJs, Browser, Electron etc.

This is WebSocket based tranport but there are many more transports.

This transport Works both in browser and on server

Moreover, it can work in different modes:

Connect from browser to server.

It is the most simple scenario.

See examples/browser-connects-to-server

Connect from client to server.

It is the most simple scenario. You use ws connection to send messages.

See examples/client-connects-to-server

Connect from server to client.

For example, you want to send RPC calls from external network to internal but server is behind NAT. So, your server (in internal network) can connect to your client (in Internet) and after that client will send RPC request to connected server.

See examples/server-connects-to-client

Bidirectional connection

Each side works as client and server the same time.

See examples/bidirectional-calls

Keywords

FAQs

Package last updated on 26 Nov 2022

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc