You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
371 B
Markdown
20 lines
371 B
Markdown
3 years ago
|
A small websocket testing setup: live streaming plain text without refreshing the webpage.
|
||
|
|
||
|
![](screenshot.png)
|
||
|
|
||
|
# Running this
|
||
|
|
||
|
Run a websocket server in Python:
|
||
|
|
||
|
$ python3 server.py
|
||
|
|
||
|
View the interface:
|
||
|
|
||
|
open client.html in a browser
|
||
|
|
||
|
Stream plain text (with HTML features):
|
||
|
|
||
|
open mytxtfile.txt in a text editor, type, hit save (CTRL+S), type more, hit save, etc
|
||
|
|
||
|
|