Remove redundant method header and fix indent

This commit is contained in:
Martin Becker
2017-07-20 08:21:29 +02:00
parent fcb623ce91
commit d0ab6c4fd1
2 changed files with 47 additions and 48 deletions

View File

@ -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
// ##################### // #####################

View File

@ -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;