Examples & Demos
The fastest way to decide whether Frontier fits your system is to run the example closest to your use case.
Go
Chatroom Demo
Start here if you care about command flow, notifications, presence, and service <-> edge messaging.
# 1. Start Frontier Gateway
docker run -d -p 30011:30011 -p 30012:30012 singchia/frontier:1.2.2
# 2. Build the examples
make examples
# 3. Terminal 1: Run the Chatroom Service
./bin/chatroom_service
# 4. Terminal 2: Run the Agent (Edge)
./bin/chatroom_agent
Stream
RTMP Relay Demo
Start here if you care about point-to-point streams, media relay, or using Frontier as a transport for custom traffic.
# 1. Start Frontier Gateway
docker run -d -p 30011:30011 -p 30012:30012 singchia/frontier:1.2.2
# 2. Build the examples
make examples
# 3. Terminal 1: Run the RTMP service
./bin/rtmp_service
# 4. Terminal 2: Run the RTMP edge
./bin/rtmp_edge
Which demo should you run first?
Choose by the job you need Frontier to do, not by the API name.
Messaging
Chatroom
For command flow, messaging, edge online/offline state, and the core service-to-edge model.
Streams
RTMP
For traffic relay, media transport, and understanding how streams differ from RPC and messaging.
SDK usage
Docs
Once the examples click, move to the usage guide and copy the exact service-side or edge-side SDK pattern.
Live Demonstration
Watch the Chatroom example connecting Edge agents with the Service.