Socket
Socket
Sign inDemoInstall

regoch-websocket

Package Overview
Dependencies
0
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    regoch-websocket

Websocket server made in NodeJS and websocket clients for NodeJS, Browser and other platforms.


Version published
Weekly downloads
150
increased by2.74%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

regoch-websocket

Websocket server made in NodeJS and websocket clients for NodeJS and Browser.

Small but very powerful, websocket library made according to RFC6455 Standard.

Current websocket version: 13

Library parts:

Installation

npm install --save regoch-websocket

Website

Visit the website www.regoch.org for more information !

Websocket Server Features

  • websocket version: 13
  • subprotocols: jsonRWS, raw
  • chat, rooms
  • PING & PONG
  • small file size
  • very fast and reliable data transfer (use it directly in the "for" loop)
  • no npm dependencies
  • powerful API
  • easy RxJS integration

subprotocol "jsonRWS"

Basic subprotocol for message exchange between server & client is the jsonRWS © subprotocol. It is the websocket subprotocol invented by the Regoch.org project.

Subprotocol description: The subprotocol is created for communication between websocket server and client.

Subprotocol definitons:

a) Client have to send message in valid JSON format. Fields: {id:string, from:string, to:string|string[], cmd:string, payload?:any}

b) Server have to send message in valid JSON format. Fields: {id:string, from:string, to:string|string[], cmd:string, payload?:any}

c) The incoming message is converted from string to object.

d) The outgoing message is converted from object to string.

TCPDUMP

Use tcpdump linux command to debug the messages sent from the server to the client. For example sudo tcpdump -i any port 57190 -X -s0 where 57190 is the client port i.e. socket.localPort

Licence

“Freely you received, freely you give”, Matthew 10:5-8

Copyright (c) 2020 Saša Mikodanić licensed under MIT .

Keywords

FAQs

Last updated on 06 Aug 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc