Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 1x 1x | /**
* WebSocket $default route.
*
* Clients in this design only *receive* pushes (new-message events, via
* utils/webSocketPush.js) — sending a message always stays a REST POST
* (messages/create.js), kept simple/idempotent/testable rather than routed
* over the socket. No app-level client-to-server messages are expected yet,
* so this is a no-op stub (reserved for a future client heartbeat/ping if
* one turns out to be needed).
*/
exports.handler = async () => {
return { statusCode: 200, body: 'OK' }
}
|