gowebrtccolliderapprtc

Cant build collider (websocket-based signaling server in Go)


Iam trying to build apprtc signaling server(collider). Based on tutorial, we only need to enter

go get collidermain

after setting $GOPATH. But I got error like this

 > go get collider/collidermain
src/collider/collidermain/main.go:9:2: no buildable Go source files in /home/abdulmanaf/poc/apprtcNewVersion/apprtc/src/collider

Then I had tried to build collider folder. But I got error like this

> go get collider/collider
# golang.org/x/net/websocket
src/golang.org/x/net/websocket/dial.go:18:19: error: reference to undefined identifier ‘tls.DialWithDialer’
   conn, err = tls.DialWithDialer(dialer, "tcp", parseAuthority(config.Location), config.TlsConfig)

What is the actual issue related to this? I need to build and deploy collider application


Solution

  • Sounds like you're using a really old version of go. Could you run go version?

    tls.DialWithDialer was added in go 1.3 in 2014.