ふと気になって,websocketのフレーム,特にKey -> Acceptの仕組みを調べてみたくなった. 以下の5.2. Base Framing Protocolあたりだよね. tex2e.github.io 下ごしらえ 以下のようなサーバもどきをチャチャっと書いて curlでいじる方針. const { WebSocketServer } = require('ws'); const wss = new WebSocketServer({ port: 8000 }); wss.on('connection', (ws) => { console.log('クライアントが接続してきました!…