Fix empty header issue

This commit is contained in:
Martin Becker committed 2017-07-19 11:12:00 +02:00
1 parent 32cb052f23
commit 669f0b489e
3 files changed
+7 -5

No files matched your search

@@ -137,7 +137,7 @@ void setup() {
// connect to websocket
webSocket.begin(ws_host, ws_port, socketUrl);
webSocket.setExtraHeaders(""); // remove "Origin: file://" header because it breaks the connection with Spring's default websocket config
webSocket.setExtraHeaders(); // remove "Origin: file://" header because it breaks the connection with Spring's default websocket config
// webSocket.setExtraHeaders("foo: I am so funny\r\nbar: not"); // some headers, in case you feel funny
webSocket.onEvent(webSocketEvent);
}