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
0
votes
0 answers

How to create websockets like aws

Hi I am trying to scale websockets like amazon web service does. I am using socketio and using ip aliasing on a big machine and multiple socketio servers are running on that machine. Another solution is to use redis and use pubsub…
Abhay Rawat
  • 43
  • 1
  • 5
0
votes
1 answer

Is there a Pub Sub service where publishers only send messages to a given topic if there are subscribers?

I'm looking for a scalable pub sub cluster where it's possible that publishers only send messages for a given topic to socketcluster if there are subscribers? The reason being is that all of my publishers process millions of messages for many topics…
0
votes
1 answer

Problem with socket-cluster client in excel custom function add-in

I'm trying to develop a excel add-in that will have mainly custom-functions that will read data from a socket-server and publish then Real time to excel cells. The add-in requires authentication and it is implemented using a OfficeDialog and auth0…
0
votes
0 answers

try to use websocket api gateway, is that worth?

I am thinking about replacing my rest API gateway into WebSocket gateway, in order to reduce requesting latency and speed up responding then to achieve user experience improvement, but I wonder is that worth? and is that will course a huge memory…
Kent Wood
  • 1,392
  • 2
  • 14
  • 30
0
votes
1 answer

SocketCluster Client -- TypeError: WebSocket is not a constructor

I am new to javascript and am trying to develop a react.js application including communication over socketcluster framework. The client should not run in the browser but in a separate javascript file in the background. To realize this, I have…
Son-Goku
  • 1
  • 1
  • 4
0
votes
1 answer

Express server blocked with Sockets

I have a problem, I am mounting an express server with Sockets (module socketcluster-server) but when I am sending http requests the express is blocked after about 20 requests, causing the Sockets (client) to notify that they have run out…
planta4
  • 141
  • 7
0
votes
1 answer

I cannot access my variable inside socket.on of socketcluster

I want to assign the value of msg to the variable sample but it cannot access sample inside the callback. import { Injectable } from '@angular/core'; import * as socketCluster from 'socketcluster-client'; @Injectable({ providedIn:…
Clyde Santos
  • 305
  • 2
  • 6
0
votes
1 answer

How to add Socket (Messenger) into background

I created a messenger application which works with sockets. So I want to add it in background. In background the socket will hear income messages in background and show notifications. So I want to do it with WorkManager. Is it the best way and will…
0
votes
1 answer

Type Error global.XMLHttpRequest is not a constructor in NUXT

I am trying to use THIS library on the client side as a plugin When I npm run dev the client, I get this error My vue2socketcluster.js file inside the plugins folder looks like this import Vue2Socketcluster from…
PirateApp
  • 5,433
  • 4
  • 57
  • 90
0
votes
1 answer

Node js Socket Cluster get all sockets(clients) connected from server with socket id

Im working on nodejs project which has socketCluster module for bidirectional broadcasting. The problem is I want to disconnect specific socket using socket ID. What I have done so far is, I have the socket ID and I emit it to a listener in node…
Vijay Wilson
  • 516
  • 7
  • 21
0
votes
1 answer

How to add event listeners to Vue socket cluster client in a method?

I try to add a Vue socket cluster connection inside a method rather than at startup. Here is the result of my research. I see several issues. I added the connection directives inside a method called connect(), this method is called by a click from…
Nicolas Guérinet
  • 2,086
  • 1
  • 29
  • 38
0
votes
1 answer

Why do I have a client reconnect every 10s

Trying to use socketcluster to exchange events between browser windows. On the sender side I have : var options = { hostname: "myserver.com", secure: true, port: 443, connectTimeout: 86400000, autoReconnectOptions: { …
Yves
  • 159
  • 7
0
votes
1 answer

Can't authenticate coinigy websocket stream using socketcluster Java client

I'm trying to use the Coinigy websocket api, to get the stream of real time trades. But I am getting a error: {"rid":2,"error":"Your are connected but this socket has not been authenticated. Please emit auth event with credentials payload."} …
tyagi
  • 265
  • 2
  • 10
0
votes
1 answer

connect ionic3 with socket clusters websocket or socket.io

I have working code with cordova but want to transform it to ionic3 but unable to find any reference. I don't want to use Fire-base i have my own socket server. I know i could have added some of my code to it but i am only able to find of ionic 2#
Amit Kumar Pawar
  • 3,252
  • 1
  • 20
  • 27
0
votes
2 answers

deployment on minikube locally

I have deployed and created services for socketcluster, scc-broker and scc-state on kubernetes locally via minikube directly through using the docker-files (see this link for .yaml files). And I have also created a service for ingress within the…
Roshan
  • 150
  • 16