Back to Webrtc

WebRTC DataChannel Example in Go

examples/data-channels-simple/README.md

4.2.11450 B
Original Source

WebRTC DataChannel Example in Go

This is a minimal example of a WebRTC DataChannel using Go (Pion) as the signaling server.

Features

  • Go server for signaling
  • Browser-based DataChannel
  • ICE candidate exchange
  • Real-time messaging between browser and Go server

Usage

  1. Run the server:
go run main.go
  1. Open browser at http://localhost:8080

  2. Send messages via DataChannel and see them in terminal & browser logs.