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
1
vote
1 answer

How to set up socketcluster with SSL

I want to use socketcluster on a dedicated machine with SSL. No proxies or anything like that. The docs are rather vague on this one. Is it even possible? How do I pass the key and crt file?
Nick M
  • 2,424
  • 5
  • 34
  • 57
1
vote
0 answers

Socket Cluster. Emitter.Listener not working

First of all this question has no duplicate, because in this question there's only toast problem [Android Emitter.Listener not working. I have no problem with toast. I'm using SocketCluster https://github.com/sacOO7/socketcluster-client-java, not…
Hayk Mkrtchyan
  • 2,835
  • 3
  • 19
  • 61
1
vote
1 answer

How to authenticate the socket?

I'm using Socket Cluster and I (here the link enter link description here) have an OAuth app. So I'm getting nullPointerException in socket.connect() method. Here the syntax. private String url = "http://There's my Ip and port"; private Socket…
Hayk Mkrtchyan
  • 2,835
  • 3
  • 19
  • 61
1
vote
2 answers

Socket connection failed for unknown reasons

I am trying to connect to remote socket server and i get an error: "Socket connection failed for unknown reasons" spent a lot of time, and I could not find a solution ( Please, helpe me/ thanks My client dep: socketcluster-client 9.0.2, angularjs…
1
vote
0 answers

java dependency(maven, gradle) and scala(sbt)

I'm from javscript side and now learning scala and java ecosystem. At javascript, It was simple as npm install/yarn add, but here in java ecosystem seems a bit complex to me. I've started scala with apache kafka. and then learned little bit of…
Roniel
  • 13
  • 5
1
vote
1 answer

socketcluster pass client from one worker to another

I am pretty new to socketcluster and sockets in general. So I used a terminal chat example from https://github.com/devonJS/socket-cluster-chat/ I would like to scale it to 2 workers instead of one, specifically I would like to have the second worker…
L. Zehl
  • 13
  • 1
  • 2
1
vote
1 answer

Objective C pods in Swift Project - right bridging headers?

I am trying to add SocketClusteriOS (https://github.com/abpopov/SocketCluster-ios-client) pod written in Objective C to Swift project. I've tested the this pod in Objective C project, url seems working fine, but when I am trying to add it to Swift…
1
vote
1 answer

Send message to socketcluster channel from outside worker

There is an external resource I am watching and whenever the data changes I would like to send a message to a specific channel depending on the data. I found two ways to do this by bonking my head repeatedly against the SC docs: by watching from…
Nick M
  • 2,424
  • 5
  • 34
  • 57
1
vote
1 answer

Socketcluster custom error

I am using socketcluster for an application of mine. I have implemented middleware authentication and authorization for the socket events, by chaining callback functions. In case of any error generated from the middleware, I need to send errors to…
1
vote
1 answer

Socketcluster client errror EXCEPTION: SocketProtocolError: Socket hung up

I am unable to connect to socketcluster server from Firefox and chrome for android. Is there any solution?
user1762608
  • 245
  • 2
  • 4
  • 10
1
vote
1 answer

Redux actions get triggered unnecessarily on state change

I'm trying to integrate socketCluster with a simple redux app. Currently , there is only one feature which takes the value of the current state in a component and sends it to the server through a middleware. this is my actions.js file export…
Jayaram
  • 6,276
  • 12
  • 42
  • 78
1
vote
2 answers

How do I get SocketCluster to restart on file change?

I'm running http://socketcluster.io/ and I want to restart my workers whewnever a file changes. However, nodemon server.js fails as soon as it tries to restart with an endlessly-repeating wall of: 1445633138359 - Origin: Worker (PID 44372) …
SomeKittens
  • 38,868
  • 19
  • 114
  • 143
0
votes
0 answers
0
votes
0 answers

Client pong timed out error in socketcluster 17. we are unable to request any client connection but still got this error

We created one sample latest socketcluster version. Then we start the npm start. SC is successfully started. After some time it got the below error. We unable request any connection on this but pong timed out getting. Error [SocketProtocolError]:…
Sathiyaraj
  • 343
  • 3
  • 11
0
votes
0 answers

Is there no support for reconnection in socket cluster ios client library?

I have implemented a socket cluster server. Also have an android app that is using it and the connection is very stable and data exchange is also good.I have a spring server as well and that also works absolutely fine. When implementing socket…