rtc-data-channel

command
v0.0.0-...-0d23b08 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2024 License: MIT Imports: 4 Imported by: 0

README

Example data-channel

This example demonstrates the LP2PDataChannel API for exchanging messages.

The example simulates both peers. It is configured to run in a non-interactive way, simulating user input.

Example output

The presenting browser (receiver) show a pin:
Pin: 1234 (presented to user)
The consuming browser (requester) asks the user to enter the pin.
Pin: 1234 (entered by user)
Requester: got connection
Requester: got dataChannel
Receiver: got connection
Receiver: Received message: Good day to you, receiver!
Requester: Received message: Good day to you, requester!

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL