Skip to content

Commit

Permalink
set port
Browse files Browse the repository at this point in the history
  • Loading branch information
Sagleft committed May 28, 2022
1 parent 86c927b commit 77f153e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ws.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"log"
"os"
"reflect"
"strconv"

"github.com/rgamba/evtwebsocket"
)
Expand Down Expand Up @@ -164,7 +165,7 @@ func (c *UtopiaClient) WsSubscribe(task WsSubscribeTask) error {
PingMsg: []byte("PING"),
}

err := conn.Dial(c.getBaseURL(), "")
err := conn.Dial(c.getBaseURL()+":"+strconv.Itoa(task.Port), "")
if err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit 77f153e

Please sign in to comment.