diff --git a/README.md b/README.md index 201aede..f7709f4 100644 --- a/README.md +++ b/README.md @@ -103,7 +103,7 @@ Vix.cpp is designed to remove overhead, unpredictability, and GC pauses. using namespace vix; int main() { - vix::App app; + App app; app.get("/", [](Request&, Response& res){ res.send("Hello from Vix.cpp 🚀"); @@ -128,10 +128,10 @@ int main() session.send_json("chat.system", {"text", "Welcome"}); }); - ws.on_typed_message([](auto& session, - const std::string& type, - const vix::json::kvs& payload) - { + ws.on_typed_message( + [](auto& session, + const std::string& type, + const vix::json::kvs& payload){ (void)session; if (type == "chat.message") { @@ -161,10 +161,10 @@ int main() }); }); - ws.on_typed_message([&ws](auto& session, - const std::string& type, - const vix::json::kvs& payload) - { + ws.on_typed_message( + [&ws](auto& session, + const std::string& type, + const vix::json::kvs& payload){ (void)session; if (type == "chat.message") { diff --git a/modules/cli b/modules/cli index 76e7ec2..b288d39 160000 --- a/modules/cli +++ b/modules/cli @@ -1 +1 @@ -Subproject commit 76e7ec2155f438f2cc83e9ce262f096d2be8aa55 +Subproject commit b288d39d804884e96914b5d904734cae6d8ef8b2