({ sessionId } = {})
| 42 | } |
| 43 | |
| 44 | leaveSession({ sessionId } = {}) { |
| 45 | if (!sessionId) throw new Error('sessionId is required'); |
| 46 | |
| 47 | return this.store.send({ |
| 48 | type: 'session_leave', |
| 49 | payload: { |
| 50 | session_id: sessionId, |
| 51 | left_at: new Date().toISOString(), |
| 52 | }, |
| 53 | priority: 'normal', |
| 54 | }); |
| 55 | } |
| 56 | |
| 57 | sendMessage({ sessionId, toNodeId, msgType, payload } = {}) { |
| 58 | if (!sessionId) throw new Error('sessionId is required'); |
no test coverage detected