Cross Room Communication in Server #593
-
Is there any way that two different room can communicate in the server side just like send and onMessage such that room B will do responding action when room A emit a event. |
Beta Was this translation helpful? Give feedback.
Answered by
endel
Jun 23, 2023
Replies: 1 comment 1 reply
-
Hi @Samson-114, you can achieve this through the presence API via If you know the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Samson-114
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @Samson-114, you can achieve this through the presence API via
this.presence.subscribe()
andthis.presence.publish()
If you know the
roomId
of the other room that you want to communicate, you can useremoteRoomCall
instead.