Join Room On Custom Event #56
Unanswered
mypeacegarden
asked this question in
Q&A
Replies: 1 comment
-
|
Sorry for late response, been a bit busy lately. What params are you passing when emitting Due to this your emit from the client should look like this socket.emit("myCustomEvent",socket);In terms of the handler for P.S. In terms of examples I do not have any uploaded at the moment but I am working on getting something added that shows all the features. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm trying this plugin. Is there any repo where I can see the implementation?
There are a few things I'm confused about.
I'm using this controller to add new message to my database.
My database has the following collections:
chat-roomsandchat-messagechat-roomscontain rooms for duel chats. Suppose user5wants to chat with user7, I'm searching if there's any room available named5_7or7_5. If yes,addNewMessagewill create a new entry and link it with the already existing room (inchat-rooms)The chat room collection contains
membersand a uniqueroom_id. I want to send emits to only those who are the members of thechat-roomwhere the message has been added. But I'm not able to let someone join that room This is what I have tried (in theeventsarray) so far...The client is emitting
myCustomEventand the server is able to listen to itBeta Was this translation helpful? Give feedback.
All reactions