()
| 166 | } |
| 167 | |
| 168 | function getTurnStatePayload() { |
| 169 | return { |
| 170 | type: 'turn_state', |
| 171 | phase: state.turnState.phase, |
| 172 | sessionId: state.turnState.sessionId, |
| 173 | version: state.turnState.version, |
| 174 | updatedAt: state.turnState.updatedAt, |
| 175 | reason: state.turnState.reason || '', |
| 176 | }; |
| 177 | } |
| 178 | |
| 179 | function sendTurnState(ws, context = '') { |
| 180 | return sendWs(ws, getTurnStatePayload(), context); |
no outgoing calls
no test coverage detected