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.
Dependents: WebSocketServerTest
WebSocketHandler.h
- Committer:
- flatbird
- Date:
- 2015-03-25
- Revision:
- 1:db4114d55f83
- Parent:
- 0:a816c25e83ed
File content as of revision 1:db4114d55f83:
#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