Merge branch '2.5.x'
Closes gh-27511
This commit is contained in:
@@ -91,13 +91,12 @@ class Connection {
|
||||
}
|
||||
|
||||
private void runWebSocket() throws Exception {
|
||||
this.webSocket = true;
|
||||
String accept = getWebsocketAcceptResponse();
|
||||
this.outputStream.writeHeaders("HTTP/1.1 101 Switching Protocols", "Upgrade: websocket", "Connection: Upgrade",
|
||||
"Sec-WebSocket-Accept: " + accept);
|
||||
new Frame("{\"command\":\"hello\",\"protocols\":[\"http://livereload.com/protocols/official-7\"],"
|
||||
+ "\"serverName\":\"spring-boot\"}").write(this.outputStream);
|
||||
Thread.sleep(100);
|
||||
this.webSocket = true;
|
||||
while (this.running) {
|
||||
readWebSocketFrame();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user