client. allow connection to any url. url generator function.

This commit is contained in:
Gennadii Kovalev
2016-05-20 14:26:18 +02:00
parent ae104e987d
commit b811737225
5 changed files with 32 additions and 9 deletions

View File

@ -31,7 +31,9 @@ func sendJoin(c *gosocketio.Client) {
func main() {
runtime.GOMAXPROCS(runtime.NumCPU())
c, err := gosocketio.Dial("localhost:3811", transport.GetDefaultWebsocketTransport())
c, err := gosocketio.Dial(
gosocketio.GetUrl("localhost", 3811, false),
transport.GetDefaultWebsocketTransport())
if err != nil {
log.Fatal(err)
}