Skip to content

rksm/l2l-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

l2l-cpp

A C++ websocket server based on websocketpp that allows message sends via the Lively-2-Lively protocol.

Usage

  auto echoService = l2l::createLambdaService("echo",
    [](Json::Value msg, std::shared_ptr<l2l::L2lServer> server) {
      Json::Value answer;
      answer["data"] = msg["data"];
      server->answer(msg, answer);
    });

  l2l::Services services{echoService, delayedService, binaryService};

  int port = 10001;
  std::string host = "0.0.0.0";
  std::string id = "my-test-server";
  auto server = l2l::startServer(host, port, id, services);

For a more complex example see .

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages