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: WebSocketHandler.h
- Revision:
- 10:578778037efb
diff -r 774f408b9740 -r 578778037efb WebSocketHandler.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/WebSocketHandler.h Mon Mar 16 18:48:50 2015 +0900
@@ -0,0 +1,16 @@
+#ifndef _WEB_SOCKET_HANDLER_H_
+#define _WEB_SOCKET_HANDLER_H_
+
+class WebSocketHandler
+{
+public:
+ virtual void onOpen() {};
+ virtual void onClose() {};
+ // to receive text message
+ virtual void onMessage(char* text) {};
+ // to receive binary message
+ virtual void onMessage(char* data, size_t size) {};
+ virtual void onError() {};
+};
+
+#endif