ComunicRTCProxy/main.go

23 lines
313 B
Go
Raw Normal View History

2020-04-09 15:32:16 +00:00
package main
import (
"fmt"
2020-04-10 06:46:34 +00:00
"os"
2020-04-09 15:32:16 +00:00
)
func main() {
2020-04-10 06:46:34 +00:00
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])
2020-04-10 07:43:14 +00:00
// Then connect to websocket
openWs(&conf)
2020-04-09 15:32:16 +00:00
}