initial commit
This commit is contained in:
commit
fa73c478e9
34 files changed
+3581
No files matched your search
@@ -0,0 +1,16 @@
|
||||
#include "echo.hpp"
|
||||
|
||||
using websocketecho::echo_handler;
|
||||
|
||||
bool echo_handler::validate(websocketpp::session_ptr client) {
|
||||
return true;
|
||||
}
|
||||
|
||||
void echo_handler::message(websocketpp::session_ptr client, const std::string &msg) {
|
||||
client->send(msg);
|
||||
}
|
||||
|
||||
void echo_handler::message(websocketpp::session_ptr client,
|
||||
const std::vector<unsigned char> &data) {
|
||||
client->send(data);
|
||||
}
|
||||
Reference in new issue
Block a user