datachannel: send OpenChannel message

This commit is contained in:
backkem
2018-08-11 15:27:55 +02:00
committed by Sean DuBois
parent b2467593d0
commit 8d6e30ec87
12 changed files with 336 additions and 17 deletions

View File

@@ -4,6 +4,7 @@ import (
"bufio"
"encoding/base64"
"fmt"
"io"
"math/rand"
"os"
"sync"
@@ -27,7 +28,7 @@ func randSeq(n int) string {
func main() {
reader := bufio.NewReader(os.Stdin)
rawSd, err := reader.ReadString('\n')
if err != nil {
if err != nil && err != io.EOF {
panic(err)
}