Description
Hey all. I’m working with a rocketchat system and I’m trying to get the WebSocket connection to allow stream-room messages to work. Right now I can connect and make a sub to the channel but I get no messages.
It is currently hosted in GKE. I have three rocketchat shards, and one staging shard.
Server Setup Information
- Version of Rocket.Chat Server: 3.7.1
- Operating System: Docker
- Deployment Method: docker
- Number of Running Instances: 2
- DB Replicaset Oplog: Not sure what this is asking for
- NodeJS Version: Whichever comes on the Docker container
- MongoDB Version: 4.0
- Proxy: Google GKE loadbalancer
- Firewalls involved: Only what GKE provides. As in only one port is open as of now.
Any additional Information
I followed the High Availability setup located here:
https://docs.rocket.chat/installation/docker-containers/high-availability-install
The mongo is set up as a replicaSet.
The stream-notify-room sub is working. Just not the stream-room-messages.
I am subbing like so:
let roomMessagesSub = {
msg: "sub",
id: String(roomSubId),
name: "stream-room-messages",
params: [
chatRoomId,
false,
],
};
setTimeout(() => {
socket.send(JSON.stringify(roomMessagesSub));
}, 10000);
Any help is greatly appreciated.