Skip to content
modkitv0.2

WebSocket

← All examples23_websocket

Demonstrates WebSocket functionality: - WebSocket server - WebSocket client connection - Sending and receiving text messages - Connection state management This example can run a local WebSocket echo server. CLI args: --server or -s : Auto-start server --client or -c : Auto-connect as client

WebSocket

Runs the WebAssembly build on this page. Click the canvas to give it keyboard focus.

Number
23
Tags
networking
Requires
MODKIT_ENABLE_NETWORKING
Source
examples/23_websocket/main.c

Build and run

./scripts/build-linux.sh release --target=23_websocket --run