機能 #569
サーバ側から通知は Server-Sent Events (SSE) を利用するように変更
関連するチケット
更新履歴 github|0c9f8b2a05f082ff78e23007d0ed25c5f1321fc5 で適用されました。
修正前:
$ 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 !\"/>"}