(data)
| 129 | } |
| 130 | |
| 131 | export function sendControlInput(data) { |
| 132 | if (!S.ws || S.ws.readyState !== WebSocket.OPEN) return; |
| 133 | S.ws.send(JSON.stringify({ type: 'input', data: String(data) })); |
| 134 | } |
| 135 | |
| 136 | export function sendControlEnter() { |
| 137 | sendControlInput('\r'); |
no outgoing calls
no test coverage detected