10 Best JavaScript Websocket Libraries

List hand-picked by Openbase Experts
Learn More

ws

Simple to use, blazing fast and thoroughly tested WebSocket client and server for Node.js

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.5/ 5
25
Top Feedback
15Performant
14Easy to Use
11Great Documentation
GitHub Stars
17K
Weekly Downloads
52M
Last Commit
2mos ago

sockjs

WebSocket emulation - Node.js server

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
5.0/ 5
2
Top Feedback
N/A
GitHub Stars
2K
Weekly Downloads
10M
Last Commit
6mos ago

colyseus

⚔ Multiplayer Framework for Node.js

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
4.7/ 5
3
Top Feedback
N/A
GitHub Stars
4K
Weekly Downloads
2K
Last Commit
3mos ago

obs-websocket-js

Consumes https://github.com/Palakis/obs-websocket

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
5.0/ 5
1
Top Feedback
N/A
GitHub Stars
411
Weekly Downloads
5K
Last Commit
5mos ago

laravel-echo

Laravel Echo library for beautiful Pusher and Ably integration.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
4.0/ 5
2
Top Feedback
2Easy to Use
1Bleeding Edge
GitHub Stars
857
Weekly Downloads
63K
Last Commit
3mos ago
rw

reconnecting-websocket

Reconnecting WebSocket. For Web, React Native, cli (Node.js)

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
5.0/ 5
1
Top Feedback
1Great Documentation
1Easy to Use
GitHub Stars
871
Weekly Downloads
96K
Last Commit
2yrs ago

socketio-jwt

Authenticate socket.io incoming connections with JWTs

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
4.0/ 5
2
Top Feedback
2Great Documentation
1Bleeding Edge
GitHub Stars
1K
Weekly Downloads
13K
Last Commit
10mos ago

faye-websocket

Standards-compliant WebSocket client and server

License Icon
License: Apache-2.0
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
553
Weekly Downloads
16M
Last Commit
8mos ago
web

websocket

A WebSocket Implementation for Node.JS (Draft -08 through the final RFC 6455)

License Icon
License: Apache-2.0
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
3K
Weekly Downloads
782K
Last Commit
1mo ago

jssip

JsSIP, the JavaScript SIP library

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
2K
Weekly Downloads
5K
Last Commit
4mos ago

wscat

WebSocket cat

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
1K
Weekly Downloads
10K
Last Commit
5mos ago
ew

express-ws

WebSocket endpoints for express applications

License Icon
License: BSD-2-Clause
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
721
Weekly Downloads
88K
Last Commit
7mos ago

@xmpp/websocket

XMPP for JavaScript

License Icon
License: ISC
TypeScript Icon
TypeScript Definitions: Not Found
User RatingN/A
Top Feedback
N/A
GitHub Stars
2K
Weekly Downloads
3K
Last Commit
5mos ago
nw

nativescript-websockets

Websockets for NativeScript

License Icon
License: Apache-2.0
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
82
Weekly Downloads
1K
Last Commit
4mos ago
nw

nodejs-websocket

A node.js module for websocket server and client

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
684
Weekly Downloads
15K
Last Commit
3yrs ago
soc

sockette

The cutest little WebSocket wrapper! 🧦

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
2K
Weekly Downloads
10K
Last Commit
1yr ago
kw

koa-websocket

Light wrapper around Koa providing a websocket middleware handler that is koa-route compatible.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
238
Weekly Downloads
8K
Last Commit
1yr ago
whj

websocket-heartbeat-js

♥️ simple and useful

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
535
Weekly Downloads
2K
Last Commit
10mos ago
rb

rpc-buddy

RPC Buddy allows developers to automatically expose back-end Javascript methods for use by browser frontend code.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
12
Last Commit
3mos ago

@gamestdio/websocket

WebSocket client with reconnect back-off feature. Works in the browser, Node.js and React Native.

License Icon
License: Unknown
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
59
Weekly Downloads
2K
Last Commit
3yrs ago
rnw

react-native-websocket

🔃 WebSocket API wrapped as a component for React Native

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
74
Weekly Downloads
610
Last Commit
2yrs ago
we

websocket-express

express and ws combined

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
10
Last Commit
4mos ago
rns

react-native-signalr

Use SignalR with React Native

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
148
Weekly Downloads
229
Last Commit
4yrs ago
ewr

express-ws-routes

Handle WebSocket connections using ws via express routes.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
20
Weekly Downloads
141
Last Commit
6yrs ago

simple-docker-webhook

A simple webhook for docker

License Icon
License: ISC
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
0
Last Commit
2mos ago
tin

tinyws

Tiny WebSocket middleware for Node.js based on ws.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
39
Last Commit
N/A
nsi

nativescript-socket.io

Fully-featured Socket.IO client implementation for NativeScript

License Icon
License: Unlicense
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
49
Weekly Downloads
25
Last Commit
2yrs ago
tw

taronpa-websockets

Websockets for NativeScript

License Icon
License: Unknown
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
82
Weekly Downloads
1
Last Commit
4mos ago
hex

hexnut

A middleware based framework for web sockets

License Icon
License: ISC
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
4
Last Commit
N/A
ew

express-websocket

Use Express middleware before initiating Websocket connection.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
8
Weekly Downloads
3
Last Commit
7yrs ago
eu

express-uws

WebSocket endpoints for express applications

License Icon
License: BSD-2-Clause
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
6
Weekly Downloads
3
Last Commit
3yrs ago
wba

ws-basic-auth-express

Adds basic auth to socket connections in express

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
1
Weekly Downloads
2
Last Commit
8yrs ago