|
|
лет назад: 2 | |
|---|---|---|
| .. | ||
| web | лет назад: 2 | |
| Makefile | лет назад: 2 | |
| README.md | лет назад: 2 | |
| appweb.conf | лет назад: 2 | |
| file.txt | лет назад: 2 | |
| output.c | лет назад: 2 | |
| start.me | лет назад: 2 | |
This sample demonstrates writing large, streaming response without blocking, buffering or consuming excessive memory. This sends a large file as a single web socket message using multiple frames.
The sample is implemented as an ESP controler with one action. A test web page initiates the client WebSocket request to retrieve the file. To run, browse to:
http://localhost:8080/index.html
make
make run
The server listens on port 8080. Browse to:
http://localhost:8080/index.html
This opens a web socket and and listens for WebSocket data sent by the server. It will display the received data in the browser window.