generated at
webSocket
HTTP1.1上のprotocol?

調査:
まずhttp層でやりとりしてハンドシェイク後に双方向通信( socket的な)
> この辺のコネクション確立の為の一連の流れはWebSocket opening ハンドシェイク
わかりやすい

tutorial:
まずはここをやる。
server側は require('ws').Serverで、web socket用のseverが立つ
client側は、new WebSocket(url)で webSocket用のobjectが得られる
両方とも、event handlerを記述すればよい。
3つ目で、Node-Redの紹介もある。
Flaskで、
code例が参考になる。
server側
if request.environ.get('wsgi.websocket'): ws = request.environ['wsgi.websocket'] while True: ws.send(input())
client側
var ws = new WebSocket("ws://localhost:8080/pipe"); ws.onmessage = function(e) { document.getElementById("text-field").innerHTML = e.data; }

Scrapbox のもの status が 101になってる。
> 「Webを支える技術」って本 ........101はSwitching Protocolsを表しててHTTP/1.1から、現時点...使いどころ無い」みたいに書かれてて

参考