Commit c5124c55 authored by rui.zheng's avatar rui.zheng

fix websocket scheme

parent 6e9e50e1
...@@ -17,7 +17,7 @@ type wsConn struct { ...@@ -17,7 +17,7 @@ type wsConn struct {
} }
func wsClient(conn net.Conn, host string) (*wsConn, error) { func wsClient(conn net.Conn, host string) (*wsConn, error) {
c, resp, err := websocket.NewClient(conn, &url.URL{Host: host, Path: "/ws"}, nil, 1024, 1024) c, resp, err := websocket.NewClient(conn, &url.URL{Scheme: "ws", Host: host, Path: "/ws"}, nil, 1024, 1024)
if err != nil { if err != nil {
return nil, err return nil, err
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment