Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 🚀");
Expand All @@ -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") {
Expand Down Expand Up @@ -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") {
Expand Down
Loading