ComunicRTCProxy/main.go

23 lines
313 B
Go

package main
import (
"fmt"
"os"
)
func main() {
println("Comunic RTC Proxy. (c) Pierre Hubert 2020")
// Command line args
if len(os.Args) != 2 {
fmt.Printf("Usage: %s <config>", os.Args[0])
}
// First, load the config
conf := loadConfig(os.Args[1])
// Then connect to websocket
openWs(&conf)
}