Skip to content

Latest commit

 

History

History

09-websocket-chat

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Tutorial 09: Full-Duplex WebSocket Server

Handle bidirectional full-duplex WebSocket connections and frame messaging.

Key Concepts

  • Register WebSocket endpoint route handlers using cwist_app_ws(app, "/ws", on_message_fn).
  • Send text frames back to clients using cwist_websocket_send_text(ws, message).

Build and Run

mkdir build && cd build
cmake ..
make
./tut09