Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: SNICInterface_mod WebSocketServer mbed-rtos mbed PowerControl C12832
Diff: WebSocketServer.h
- Revision:
- 8:6635ca3b5a5c
- Parent:
- 7:6cfe0638b957
- Child:
- 10:578778037efb
diff -r 6cfe0638b957 -r 6635ca3b5a5c WebSocketServer.h
--- a/WebSocketServer.h Sat Mar 14 00:14:40 2015 +0900
+++ b/WebSocketServer.h Sat Mar 14 07:52:50 2015 +0000
@@ -6,11 +6,11 @@
class WebSocketHandler
{
public:
- virtual void onOpen() = 0;
- virtual void onClose() = 0;
- virtual void onMessage(char* text) = 0;
- virtual void onMessage(char* data, size_t size) = 0;
- virtual void onError() = 0;
+ virtual void onOpen() {};
+ virtual void onClose() {};
+ virtual void onMessage(char* text) {};
+ virtual void onMessage(char* data, size_t size) {};
+ virtual void onError() {};
};
class WebSocketServer