Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/Simple-WebSocket-Server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreidheim <eidheim@gmail.com>2016-12-30 23:50:30 +0300
committereidheim <eidheim@gmail.com>2016-12-30 23:51:22 +0300
commit2678b448812920282397d89d22dfec1878fea6b7 (patch)
tree85f51137fed6db82605692948c5f631f3fd24646 /client_wss.hpp
parent7709be1dd04482d84ed0e6f5e861b0f80f020492 (diff)
Renamed onopen to on_open, onmessage to on_message, onclose to on_close, and onerror to on_error. Deprecated the old variables.
Diffstat (limited to 'client_wss.hpp')
-rw-r--r--client_wss.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/client_wss.hpp b/client_wss.hpp
index 02328d1..46cc4bf 100644
--- a/client_wss.hpp
+++ b/client_wss.hpp
@@ -55,16 +55,16 @@ namespace SimpleWeb {
[this](const boost::system::error_code& ec) {
if(!ec)
handshake();
- else if(onerror)
- onerror(ec);
+ else if(on_error)
+ on_error(ec);
});
}
- else if(onerror)
- onerror(ec);
+ else if(on_error)
+ on_error(ec);
});
}
- else if(onerror)
- onerror(ec);
+ else if(on_error)
+ on_error(ec);
});
}
};