All Projects → fent → socket.io-clusterhub

fent / socket.io-clusterhub

Licence: MIT license
socket.io storage powered by clusterhub for multi process applications.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to socket.io-clusterhub

socialApp-MERN
Social Networking web app similar to Instagram.
Stars: ✭ 35 (-50%)
Mutual labels:  socket-io
kubernetes the easy way
Automating Kubernetes the hard way with Vagrant and scripts
Stars: ✭ 22 (-68.57%)
Mutual labels:  cluster
homeworld
Cluster management system for the SIPB Hyades project
Stars: ✭ 20 (-71.43%)
Mutual labels:  cluster
ts-phaser-bomb-game
Bomberman clone using websockets and phaser 3
Stars: ✭ 18 (-74.29%)
Mutual labels:  socket-io
2019-21
🙋‍♀️ 🙋‍♂️ 바글바글(Vaagle): 실시간 질의응답 및 투표 공유 서비스
Stars: ✭ 38 (-45.71%)
Mutual labels:  socket-io
SocialApp-React-Native
Social Networking mobile app similar to Instagram in React Native.
Stars: ✭ 79 (+12.86%)
Mutual labels:  socket-io
darkwire-client
Encrypted web socket chat - Darkwire.io client
Stars: ✭ 23 (-67.14%)
Mutual labels:  socket-io
moosefs-csi
Container Storage Interface (CSI) for MooseFS
Stars: ✭ 44 (-37.14%)
Mutual labels:  cluster
vue3-chat
2021👨‍🎓Vue2/3全家桶 + Koa+Socket+Vant3前后端分离移动端聊天应用。vue+node全栈入门项目
Stars: ✭ 46 (-34.29%)
Mutual labels:  socket-io
vue-feathers-chat
A sample realtime chat made with Vue and Feathers.
Stars: ✭ 50 (-28.57%)
Mutual labels:  socket-io
Client
TRPG即时IM通讯软件客户端,基于React 与 React Native + Redux技术
Stars: ✭ 118 (+68.57%)
Mutual labels:  socket-io
fridaybot
Slack bot for https://spb-frontend.slack.com
Stars: ✭ 29 (-58.57%)
Mutual labels:  socket-io
fifa
React + Node.js + socket.io -- A turn-based multiplayer game-client based on FIFA
Stars: ✭ 26 (-62.86%)
Mutual labels:  socket-io
Example
Metarhia application example for Node.js
Stars: ✭ 147 (+110%)
Mutual labels:  cluster
CleanArchitecture-SocketIO
CleanArchitecture with SocketIo 📡
Stars: ✭ 32 (-54.29%)
Mutual labels:  socket-io
skein
A tool and library for easily deploying applications on Apache YARN
Stars: ✭ 128 (+82.86%)
Mutual labels:  cluster
Asher.Ai
Welcome to the API side of Asher, where all the language processing happens.
Stars: ✭ 20 (-71.43%)
Mutual labels:  socket-io
socketio-with-express
Sample script demonstrating how to run Express with socket.io.
Stars: ✭ 29 (-58.57%)
Mutual labels:  socket-io
face-cluster-by-infomap
face-cluster-by-infomap 一种无监督人脸聚类方法,在开源数据集上取得SOTA效果
Stars: ✭ 122 (+74.29%)
Mutual labels:  cluster
EduSmart
It utilizes 3D, Augmented reality to give real-life simulations or feels of various models and make the learning process more impactful and fascinating. With an interactive live feature, students can ask the teacher their doubts instantly and also discuss.
Stars: ✭ 23 (-67.14%)
Mutual labels:  socket-io

socket.io-clusterhub Build Status

A socket.io storage made with clusterhub. Syncs data between multi-process socket.io applications.

Note: Only works with socket.io version <= v0.9.0

Usage

var cluster = require('cluster');
var numCPUs = require('os').cpus().length;

// store must be initialized for master/worker processes
var store = new (require('socket.io-clusterhub'));

if (cluster.isMaster) {
  for (var i = 0; i < numCPUs; i++) {
    cluster.fork();
  }

} else {
  var io = require('socket.io').listen(3000)
  console.log('Listening on port 3000');

  // set the store to the socket.io-clusterhub instance
  io.configure(function() {
    io.set('store', store);
  });

  io.sockets.on('connection', function(socket) {
    // use socket.io as normal
  });
}

Install

npm install socket.io-clusterhub

Tests

Tests are written with mocha

npm test

License

MIT

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].