Closed kuv2707 closed 1 week ago
Comment '@csoc-bot claim' to get this issue assigned or '@csoc-bot abandon' to get this issue unassigned.
@csoc-bot claim
@sksmagr23 This issue has been successfully assigned to you! 🚀
@kuv2707 can you please tell from where to import and trigger leave game event,I am a bit confused about it
You can use channel.triggerEvent
to trigger an event. You need to pass the data relevant to the event (as defined in types.ts
). For the LEAVE_GAME
event though, no additional data is needed.
Look at MessageInput.tsx
, where we trigger the SEND_MESSAGE
event
Let me know if you have any further questions
Description
We display the
GamePropertiesModal
on entering the game, but only once.LEAVE GAME
button to this modal, which triggers theLEAVE_GAME
event (usingchannel.triggerEvent
) and navigates to the homepage.Notes