BVB Source Codes

uWebSockets Show crow.cpp Source code

Return Download uWebSockets: download crow.cpp Source code - Download uWebSockets Source code - Type:.cpp
  1. #include "crow.h"
  2.  
  3. int main()
  4. {
  5.     crow::SimpleApp app;
  6.  
  7.     CROW_ROUTE(app, "/").websocket()
  8.     .onmessage([&](crow::websocket::connection& conn, const std::string& data, bool is_binary) {
  9.                     if (is_binary)
  10.                         conn.send_binary(data);
  11.                     else
  12.                         conn.send_text(data);
  13.     });
  14.  
  15.     app.port(3000).run();
  16. }
  17.  
downloadcrow.cpp Source code - Download uWebSockets Source code
Related Source Codes/Software:
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
postal - 2017-06-11
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11

 Back to top