A nodejs module for websocket server and client. The class that represents a connection, either a client-created (accepted by a nodejs ws server) or client connection. The websocket protocol has two types of data frames: text and binary. Text frames are implemented as simple send function and receive event. Binary frames are implemented as streams: when you receive binary data, you get a ReadableStream; to send binary data, you must ask for a WritableStream and write into it. The binary data will be divided into frames and be sent over the socket.

Features

  • A node.js module for websocket server and client
  • Install with npm install nodejs-websocket or put all files in a folder called "nodejs-websocket",
  • The options is an optional object that will be handed to net.createServer() to create an ordinary socket
  • Returns a new Connection object, representing a websocket client connection
  • Set the minimum size of a pack of binary data to send in a single frame (default: 512kiB)

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Nodejs Websocket

Nodejs Websocket Web Site

Other Useful Business Software
Tremendous is the global payouts platform for businesses sending gift cards and money at scale. Icon
Tremendous is the global payouts platform for businesses sending gift cards and money at scale.

Getting started is simple: add a funding method and place your first order in minutes.

Trusted by 20,000+ leading organizations, Tremendous has delivered billions of rewards and enables businesses to reach recipients across 230+ countries and regions. Recipients have 2,500+ payout options to choose from, including gift cards, prepaid cards, cash transfers, and charitable donations.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Nodejs Websocket!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript WebSocket Servers

Registered

2023-08-14