fasthtml icon indicating copy to clipboard operation
fasthtml copied to clipboard

Update ws example

Open mattlink opened this issue 6 months ago • 2 comments

Adds another endpoint to examples/basic_ws.py which illustrates how to read data from the websocket.

It is not clear from the existing example (or docs, currently) that you can specify a data argument to the handler function to effectively get the contents of ws.receive(). There are other hidden arguments which seem to correspond to these annotations

mattlink avatar Jul 31 '24 04:07 mattlink