Questions tagged [socketcluster]

SocketCluster is an open source realtime WebSocket framework powered by Node.js. With both direct client-server communication (like Socket.io) and group communication via pub/sub channels. Designed to scale both vertically across multiple CPU cores and horizontally across multiple machines/instances.

SocketCluster is an open source realtime WebSocket framework powered by Node.js and optimized to run on Kubernetes (K8s).

SC supports both direct client-server communication (like Socket.io) and group communication via pub/sub channels.

SC is designed to scale both vertically across multiple CPU cores and horizontally across multiple machines/instances.

SC is optimized to run and autoscale on a K8s cluster.

50 questions
9
votes
2 answers

connecting socketcluster servers

I'm trying to implement this solution (on Win10 x64), but for some reason all the SocketCluster nodes refuse to communicate with each other. Sothis is my cur. configuration: 1 StateServer [7777] 1 BrokerServer [8888] 2 SocketCluster servers…
Alexus
  • 1,887
  • 1
  • 23
  • 50
7
votes
2 answers

On a django site I am getting socket cluster error

Not Found: /socketcluster/ [06/Aug/2020 21:45:44] "GET /socketcluster/ HTTP/1.1" 404 3181 this happens every 61 secounds while I am running the django webserver, using "python3 manage.py runserver". I am very new to web development and have no clue…
5
votes
1 answer

Can't authenticate using Socketcluster V2 for Coinigy Exchange websocket ticker api

I'm trying to use the ticker data for the Coinigy websocket api, to get the stream of real time trades and prices of crypto assets. I've tried the following demo with no success, and I get a response of: "Socket is not authenticated" internal class…
Carlo Luther
  • 2,402
  • 7
  • 46
  • 75
3
votes
1 answer

using "for await...of" in react native

I am able to run below code on node js as client. It works but when I use the same code in react-native it throws below error. Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a…
3
votes
1 answer

Horizontal scaling and GraphQL within a Node.js environment

I am trying to build an application that contains an instant messaging module, and one of the main challenges is to keep the application scalable whatever the number of the users or the messages that are exchanged is. In an article I read that it is…
Strider
  • 3,539
  • 5
  • 32
  • 60
3
votes
1 answer

node-mongodb Protection against websocket data loss

I am on the client side of a websocket API which uses SocketCluster for its pub/sub. After authenticating I receive every second json data via SCsocket.on('authenticate', function(){ var channel = SCsocket.subscribe('channel1'); …
tenticon
  • 2,639
  • 4
  • 32
  • 76
3
votes
1 answer

SocketCluster Middleware HandShake with promise

Im building an app that serve both http and ws. Users login first over HTTP to a Laravel Server. That returns a JWT that is used to allow login over WS. Ihv added a MIDDLEWARE_HANDSHAKE that gets the token and make a request to Laravel Server to ask…
Tom Vega
  • 31
  • 6
3
votes
1 answer

How to create channel programmatically on socketcluster?

I'm considering using socketcluster to build a realtime app. The docs are very clear but I could not find a way to create a channel on demand programmatically. My need is: as a user, I would like to call a REST API which will create a channel which…
Pierre Roth
  • 223
  • 1
  • 2
  • 8
2
votes
1 answer

Socket Clusters with Pub Sub on Cloud

I am creating a Transport Layer to frontend for a webApp. Users could be connected over Mobile Apps, Browser both. The Transport Layer is frontending for multiple Applications which includes Chat Applications, Multi Page Web Applications,…
Jack
  • 21
  • 2
2
votes
0 answers

Redux-saga and socket subscription causes Uncaught TypeError: Converting circular structure to JSON

I am having trouble subscribing to a socketcluster (http://socketcluster.io/) channel when using a redux-saga generator in my chat app. The socketcluster backend is setup in a way where any messages are saved in the database then published into the…
gpsamson
  • 51
  • 1
  • 4
2
votes
1 answer

Configure SocketCluster with nginx and ssl

I'm trying to setup my SocketCluster app to use SSL. I'm able to get it working on nginx without ssl but not with it. When ever I visit the site in the browser I get the nginx welcome page. If i visit port 8000 in the browser I'm able to see socket…
Antarr Byrd
  • 24,863
  • 33
  • 100
  • 188
1
vote
2 answers

Socketclustser with acknowledgment not working

I try to use socketCluster with acknowledgment in NodeJS. I follow the code in this page: https://socketcluster.io/docs/basic-usage/ [Server] Publish to a channel and wait for acknowledgement (async () => { try { // Publish data; wait for an…
1
vote
0 answers

unsubscribe channel not working in socketcluster with swift (iOS)

Unsubscribe channel not working on socketcluster. I have to subscribe 20 channel. Now I want unsubscribe 10 channel. So We are use below code for subscribe. // For subscribe SoketManager.client.subscribeAck(channelName:"random") { (str, obj1,…
Niraj
  • 89
  • 9
1
vote
1 answer

SocketCluster - Unable to connect to server from Android app - Connection refused

I am trying to run the socketcluster-android-client demo app (https://github.com/sacOO7/socketcluster-android-demo). I have the server running at localhost:8000 successfully. I'm connecting to: ws://localhost:8000/socketcluster/ from my mobile. When…
Mahima MS
  • 153
  • 1
  • 10
1
vote
0 answers

socketcluster jwt auth using token generated on another server

(Tom Vaga asked a similar question here but Luke's response didn't quite address what I'd hoped to accomplish... I'd comment there but don't have the points yet :-) Thanks! ) I've got a Slim server working well to register and authenticate users for…
1
2 3 4