fix websocket scheme

This commit is contained in:
rui.zheng 2015-11-16 16:47:00 +08:00
parent 6e9e50e12d
commit c5124c5548

2
ws.go
View File

@ -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
} }