From 1784308747ba2f940ae9bd8b1de5f586448fb44d Mon Sep 17 00:00:00 2001 From: "adam@wssc.vic.edu.au" Date: Wed, 24 Jun 2015 12:42:54 +1000 Subject: [PATCH 1/2] Missing method for binary frame support --- Sming/SmingCore/Network/HttpServer.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Sming/SmingCore/Network/HttpServer.cpp b/Sming/SmingCore/Network/HttpServer.cpp index 711e911b5f..01bfa41739 100644 --- a/Sming/SmingCore/Network/HttpServer.cpp +++ b/Sming/SmingCore/Network/HttpServer.cpp @@ -156,6 +156,11 @@ void HttpServer::setWebSocketMessageHandler(WebSocketMessageDelegate handler) wsMessage = handler; } +void HttpServer::setWebSocketBinaryHandler(WebSocketBinaryDelegate handler) +{ + wsMessage = handler; +} + void HttpServer::setWebSocketDisconnectionHandler(WebSocketDelegate handler) { wsDisconnect = handler; From 11309c13aeaea86f900836f3f951a5393fde817e Mon Sep 17 00:00:00 2001 From: Adam Pierce Date: Wed, 24 Jun 2015 12:54:00 +1000 Subject: [PATCH 2/2] Wrong delegate --- Sming/SmingCore/Network/HttpServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sming/SmingCore/Network/HttpServer.cpp b/Sming/SmingCore/Network/HttpServer.cpp index 01bfa41739..ad27683ebd 100644 --- a/Sming/SmingCore/Network/HttpServer.cpp +++ b/Sming/SmingCore/Network/HttpServer.cpp @@ -158,7 +158,7 @@ void HttpServer::setWebSocketMessageHandler(WebSocketMessageDelegate handler) void HttpServer::setWebSocketBinaryHandler(WebSocketBinaryDelegate handler) { - wsMessage = handler; + wsBinary = handler; } void HttpServer::setWebSocketDisconnectionHandler(WebSocketDelegate handler)