機能 #569
サーバ側から通知は Server-Sent Events (SSE) を利用するように変更
Related issues
Updated by みぞ @mizo0203 over 4 years ago
- Status changed from 進行中 to 解決
- % Done changed from 40 to 80
更新履歴 github|0c9f8b2a05f082ff78e23007d0ed25c5f1321fc5 で適用されました。
Updated by みぞ @mizo0203 over 4 years ago
- Status changed from 解決 to 完了
- % Done changed from 80 to 100
修正前:
$ curl -i http://localhost:8080/fastest-finger-first/stream HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: application/octet-stream;charset=UTF-8 Transfer-Encoding: chunked Date: Sat, 28 Mar 2020 07:50:50 GMT {"delayMs":"","hero":"hero","button":"<input class=\"button is-primary is-large is-fullwidth\" onclick=\"send(7);\" type=\"button\" value=\"PUSH !\"/>"}
修正後:
$ curl -i http://localhost:8080/fastest-finger-first/stream HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Cache-Control: no-cache Connection: keep-alive Content-Type: text/event-stream;charset=UTF-8 Transfer-Encoding: chunked Date: Sat, 28 Mar 2020 07:50:44 GMT event: open event: message data: {"delayMs":"","hero":"hero","button":"<input class=\"button is-primary is-large is-fullwidth\" onclick=\"send(5);\" type=\"button\" value=\"PUSH !\"/>"}