From 6f6044b4c62594a49f62b9247a1cb86540464479 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Lien=20Sell=C3=A6g?= Date: Wed, 17 May 2017 01:00:32 +0200 Subject: [PATCH] some formatting --- toREST/include/ws.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/toREST/include/ws.hpp b/toREST/include/ws.hpp index ada7b1f..3a5e724 100644 --- a/toREST/include/ws.hpp +++ b/toREST/include/ws.hpp @@ -6,17 +6,21 @@ namespace tr { namespace ws { + namespace status { const int normal = 1000; const int unexpected = 1011; -}; +} + template void on_error(Session &session, Connection con, const boost::system::error_code &ec) { std::cerr << ec.message() << std::endl; } + template void on_close(Session &session, Connection con, int status, const std::string &reason) { } + template void on_open(Server &server, Session &session, Connection con) { if (session.is_valid()) { @@ -25,6 +29,7 @@ void on_open(Server &server, Session &session, Connection con) { server.send_close(con, status::unexpected, "Session not valid"); } } + template void on_message(Session &session, Connection con, Message message) { }