* Leave a conversation room * @param {number} conversationId - Conversation ID
(conversationId)
| 149 | * @param {number} conversationId - Conversation ID |
| 150 | */ |
| 151 | leaveConversation(conversationId) { |
| 152 | if (!this.socket) return; |
| 153 | |
| 154 | this.socket.emit("leave-conversation", { conversationId }); |
| 155 | this.conversationRooms.delete(conversationId); |
| 156 | } |
| 157 | |
| 158 | /** |
| 159 | * Add event listener |