All Projects → uNetworking → Uwebsockets.js

uNetworking / Uwebsockets.js

Licence: apache-2.0
μWebSockets for Node.js back-ends 🤘

Programming Languages

C++
36643 projects - #6 most used programming language
c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to Uwebsockets.js

Uwebsockets
Simple, secure & standards compliant web server for the most demanding of applications
Stars: ✭ 13,412 (+194.64%)
Mutual labels:  pubsub, websockets, router, commercial, proxy-protocol
Facil.io
Your high performance web application C framework
Stars: ✭ 1,393 (-69.4%)
Mutual labels:  pubsub, websockets
Http
An opinionated framework for scalable web 🌎
Stars: ✭ 136 (-97.01%)
Mutual labels:  websockets, router
Wsify
Just a tiny, simple and real-time self-hosted pub/sub messaging service
Stars: ✭ 452 (-90.07%)
Mutual labels:  pubsub, websockets
megaphone
Hear ye, hear ye 📣
Stars: ✭ 15 (-99.67%)
Mutual labels:  websockets, pubsub
Vudash
Powerful, Flexible, Open Source dashboards for anything
Stars: ✭ 363 (-92.03%)
Mutual labels:  websockets
Filedrop Web
📲 WebRTC file transfer - React/TypeScript front end.
Stars: ✭ 375 (-91.76%)
Mutual labels:  websockets
Anymethodlog
Log any method call of object in Objective-C
Stars: ✭ 361 (-92.07%)
Mutual labels:  runtime
Ts Runtime
Runtime Type Checks for TypeScript
Stars: ✭ 354 (-92.22%)
Mutual labels:  runtime
Nebula
Nebula is a powerful framwork for building highly concurrent, distributed, and resilient message-driven applications for C++.
Stars: ✭ 385 (-91.54%)
Mutual labels:  websockets
Nats.net
The official C# Client for NATS
Stars: ✭ 378 (-91.7%)
Mutual labels:  pubsub
Wssip
Application for capturing, modifying and sending custom WebSocket data from client to server and vice versa.
Stars: ✭ 373 (-91.81%)
Mutual labels:  websockets
Route Composer
Protocol oriented, Cocoa UI abstractions based library that helps to handle view controllers composition, navigation and deep linking tasks in the iOS application. Can be used as the universal replacement for the Coordinator pattern.
Stars: ✭ 362 (-92.05%)
Mutual labels:  router
Django Private Chat
Django one-to-one Websocket-based Asyncio-handled chat, developed by Bearle team
Stars: ✭ 376 (-91.74%)
Mutual labels:  websockets
Blog.vue
☘ 一个vue的个人博客项目,配合.net core api教程,打造前后端分离
Stars: ✭ 362 (-92.05%)
Mutual labels:  router
Mangos
mangos is a pure Golang implementation of nanomsg's "Scalablilty Protocols"
Stars: ✭ 384 (-91.56%)
Mutual labels:  pubsub
Ipt Netflow
Netflow iptables module for Linux kernel (official)
Stars: ✭ 357 (-92.16%)
Mutual labels:  router
Ttpatch
热修复、热更新、JS代码动态下发、动态创建类
Stars: ✭ 372 (-91.83%)
Mutual labels:  runtime
Laravel Websockets
Websockets for Laravel. Done right.
Stars: ✭ 4,157 (-8.68%)
Mutual labels:  websockets
Swim
Distributed software platform for building stateful, massively real-time streaming applications.
Stars: ✭ 368 (-91.92%)
Mutual labels:  websockets

Simple, secure1 & standards compliant2 web server for the most demanding3 of applications. Read more...

Language grade: C/C++



Simple performance

µWebSockets.js is an HTTP/WebSocket server for Node.js that runs 8.5x that of Fastify and at least 10x that of Socket.IO. It comes with both router and pub/sub support and is suited for extraordinary performance needs. Browse the documentation and see the main repo. There are tons of examples but here's the gist of it all:

/* Non-SSL is simply App() */
require('uWebSockets.js').SSLApp({

  /* There are more SSL options, cut for brevity */
  key_file_name: 'misc/key.pem',
  cert_file_name: 'misc/cert.pem',
  
}).ws('/*', {

  /* There are many common helper features */
  idleTimeout: 30,
  maxBackpressure: 1024,
  maxPayloadLength: 512,
  compression: DEDICATED_COMPRESSOR_3KB,

  /* For brevity we skip the other events (upgrade, open, ping, pong, close) */
  message: (ws, message, isBinary) => {
    /* You can do app.publish('sensors/home/temperature', '22C') kind of pub/sub as well */
    
    /* Here we echo the message back, using compression if available */
    let ok = ws.send(message, isBinary, true);
  }
  
}).get('/*', (res, req) => {

  /* It does Http as well */
  res.writeStatus('200 OK').writeHeader('IsExample', 'Yes').end('Hello there!');
  
}).listen(9001, (listenSocket) => {

  if (listenSocket) {
    console.log('Listening to port 9001');
  }
  
});

💪 Unfair advantage

Being written in native code directly targeting the Linux kernel makes it way faster than any JavaScript implementation.

Low latencies are key to customer satisfaction and your competitive edge. Run low latency services at a lower cost.

⚔️ Battle proven

We've been fully standards compliant with a perfect Autobahn|Testsuite score since 20162. µWebSockets powers many of the biggest crypto exchanges in the world, handling trade volumes of multiple billions of USD every day. If you trade crypto, chances are you do so via µWebSockets.

📦 Easily installed

We recommend, for simplicity installing with yarn add uWebSockets.js@uNetworking/uWebSockets.js#v20.3.0 or any such release.

Being an open source project, you are of course perfectly free to choose other ways of installation as you might prefer.

💼 Commercially supported

uNetworking AB is a Swedish consulting & contracting company dealing with anything related to µWebSockets; development, support and customer success.

Don't hesitate sending a mail if you're building something large, in need of advice or having other business inquiries in mind. We'll figure out what's best for both parties and make sure you're not stepping into one of the many common pitfalls.

Special thanks to BitMEX, Bitfinex, Google, Coinbase, Bitwyre and deepstreamHub for allowing the project itself to thrive on GitHub since 2016 - this project would not be possible without these beautiful companies.

⚙️ Gear up

If performance is of utter importance, you don't necessarily have to use JavaScript/Node.js but could write apps in C++ using µWebSockets directly. It works exactly the same way, and will offer the best performance for those highly demanding applications where scripting won't do.

🤝 Permissively licensed

Intellectual property, all rights reserved.

Where such explicit notice is given, source code is licensed Apache License 2.0 which is a permissive OSI-approved license with very few limitations. Modified "forks" should be of nothing but licensed source code, and be made available under another product name. If you're uncertain about any of this, please ask before assuming.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].