mirror of
https://github.com/Links2004/arduinoWebSockets.git
synced 2025-07-17 17:22:05 +02:00
Remove redundant method header and fix indent
This commit is contained in:
@ -1,11 +1,11 @@
|
|||||||
/*
|
/*
|
||||||
* WebSocketClientSockJsAndStomp.ino
|
WebSocketClientSockJsAndStomp.ino
|
||||||
*
|
|
||||||
* Example for connecting and maintining a connection with a SockJS+STOMP websocket connection.
|
Example for connecting and maintining a connection with a SockJS+STOMP websocket connection.
|
||||||
* In this example we connect to a Spring application (see https://docs.spring.io/spring/docs/current/spring-framework-reference/html/websocket.html).
|
In this example we connect to a Spring application (see https://docs.spring.io/spring/docs/current/spring-framework-reference/html/websocket.html).
|
||||||
*
|
|
||||||
* Created on: 18.07.2017
|
Created on: 18.07.2017
|
||||||
* Author: Martin Becker <mgbckr>, Contact: becker@informatik.uni-wuerzburg.de
|
Author: Martin Becker <mgbckr>, Contact: becker@informatik.uni-wuerzburg.de
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// PRE
|
// PRE
|
||||||
@ -52,8 +52,8 @@ void webSocketEvent(WStype_t type, uint8_t * payload, size_t length) {
|
|||||||
USE_SERIAL.printf("[WSc] Connected to url: %s\n", payload);
|
USE_SERIAL.printf("[WSc] Connected to url: %s\n", payload);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case WStype_TEXT: {
|
case WStype_TEXT:
|
||||||
|
{
|
||||||
// #####################
|
// #####################
|
||||||
// handle STOMP protocol
|
// handle STOMP protocol
|
||||||
// #####################
|
// #####################
|
||||||
|
@ -82,7 +82,6 @@ class WebSocketsClient: private WebSockets {
|
|||||||
void setAuthorization(const char * auth);
|
void setAuthorization(const char * auth);
|
||||||
|
|
||||||
void setExtraHeaders(const char * extraHeaders = NULL);
|
void setExtraHeaders(const char * extraHeaders = NULL);
|
||||||
void setExtraHeaders(char * extraHeaders);
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
String _host;
|
String _host;
|
||||||
|
Reference in New Issue
Block a user