mirror of
https://github.com/pion/webrtc.git
synced 2024-05-03 11:54:53 +08:00
0f1ddf0825
Resolves #478. Adds minimal JavaScript/WASM bindings. This makes it possible to compile core parts of pions/webrtc to WASM and run it in the browser. Only data channels are supported for now and there is limited/no support for certificates and credentials.
11 lines
286 B
Go
11 lines
286 B
Go
package webrtc
|
|
|
|
// DataChannelMessage represents a message received from the
|
|
// data channel. IsString will be set to true if the incoming
|
|
// message is of the string type. Otherwise the message is of
|
|
// a binary type.
|
|
type DataChannelMessage struct {
|
|
IsString bool
|
|
Data []byte
|
|
}
|