All Projects → idoshamun → socket.io-pubsub

idoshamun / socket.io-pubsub

Licence: MIT License
Socket.io adapter for Google Pub/Sub, allowing to setup a socket.io cluster

Programming Languages

javascript
184084 projects - #8 most used programming language

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

iris3
An upgraded and improved version of the Iris automatic GCP-labeling project
Stars: ✭ 38 (+31.03%)
Mutual labels:  google-cloud, google-cloud-pubsub
Teammate Android
A Team Management app for creating tournaments and games for various sports
Stars: ✭ 116 (+300%)
Mutual labels:  socket-io, google-cloud
restme
Template to bootstrap a fully functional, multi-region, REST service on GCP with a developer release pipeline.
Stars: ✭ 19 (-34.48%)
Mutual labels:  google-cloud
bigtable
TypeScript Bigtable Client with 🔋🔋 included.
Stars: ✭ 13 (-55.17%)
Mutual labels:  google-cloud
chat-app
An Express React Redux Socket.IO Chat App that uses MongoDB with Mongoose driver as database and Passport for user authentication.
Stars: ✭ 24 (-17.24%)
Mutual labels:  socket-io
nodejs-spider
No description or website provided.
Stars: ✭ 18 (-37.93%)
Mutual labels:  socket-io
chat-app
💬 Real-time chat application with no history.
Stars: ✭ 21 (-27.59%)
Mutual labels:  socket-io
retro
A self-hostable web application designed for remote retrospectives
Stars: ✭ 21 (-27.59%)
Mutual labels:  socket-io
rowy
Open-source Airtable-like experience for your database (Firestore) with GCP's scalability. Build any automation or cloud functions for your product. ⚡️✨
Stars: ✭ 2,676 (+9127.59%)
Mutual labels:  google-cloud
secrets-init
minimalistic init system for containers with AWS/GCP secrets support
Stars: ✭ 114 (+293.1%)
Mutual labels:  google-cloud
mern-chatting-app
Chatting application where you can join different rooms and chat with people from around the globe.
Stars: ✭ 39 (+34.48%)
Mutual labels:  socket-io
twitch-chat-visualizer
A Node.js Project. Would you like to see your chat stream with a custom design? This is for you!
Stars: ✭ 14 (-51.72%)
Mutual labels:  socket-io
SyncPaint
A web app for synchronized group drawing. Draw together with other people in real time.
Stars: ✭ 42 (+44.83%)
Mutual labels:  socket-io
ob google-bigquery
This service is meant to simplify running Google Cloud operations, especially BigQuery tasks. This means you do not have to worry about installation, configuration or ongoing maintenance related to an SDK environment. This can be helpful to those who would prefer to not to be responsible for those activities.
Stars: ✭ 43 (+48.28%)
Mutual labels:  google-cloud
end-to-end-machine-learning-with-google-cloud
End to End Machine Learning with Google Cloud Platform
Stars: ✭ 39 (+34.48%)
Mutual labels:  google-cloud
SocketIO Chat APP
This is the simple Chat Application in which user can join the room and continue chatting with others.
Stars: ✭ 50 (+72.41%)
Mutual labels:  socket-io
react-universal
Minimal React+Redux boilerplate for web, mobile, and desktop app development with social-login ready
Stars: ✭ 18 (-37.93%)
Mutual labels:  socket-io
arc gcs
Provides an Arc backend for Google Cloud Storage
Stars: ✭ 48 (+65.52%)
Mutual labels:  google-cloud
machine-learning-remote-ue4
Machine Learning plugin for the Unreal Engine, encapsulating calls to remote python servers running e.g. Tensorflow/Pytorch.
Stars: ✭ 74 (+155.17%)
Mutual labels:  socket-io
gcp-firewall-enforcer
A toolbox to enforce firewall rules across multiple GCP projects.
Stars: ✭ 77 (+165.52%)
Mutual labels:  google-cloud

socket.io-pubsub

Build Status

How to use

const pubsub = require('@google-cloud/pubsub');
const pubsubClient = pubsub();
const io = require('socket.io')(3000);
const pubsubAdapter = require('socket.io-pubsub');
io.adapter(pubsubAdapter(pubsubClient));

By running socket.io with the socket.io-pubsub adapter you can run multiple socket.io instances in different processes or servers that can all broadcast and emit events to and from each other using Google Cloud Pub/Sub.

If you need to emit events to socket.io instances from a non-socket.io process, you should use socket.io-emitter.

API

adapter(pubsub[, opts])

pubsub is a google-cloud pubsub object.

The following options are allowed:

PubsubAdapter

The pub/sub adapter instances expose the following properties that a regular Adapter does not

  • uid
  • prefix
  • pubsub

License

Apache 2.0

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