streams.go
changeset 238 1c0042e76902
parent 217 cc086e49cd0c
child 244 4508376c8fcb
equal deleted inserted replaced
237:16c27106d83c 238:1c0042e76902
    50 	if !strings.HasPrefix(mc.APIBase, "http") {
    50 	if !strings.HasPrefix(mc.APIBase, "http") {
    51 		return nil, errors.New("cannot create Websocket URL: unexpected API base URL")
    51 		return nil, errors.New("cannot create Websocket URL: unexpected API base URL")
    52 	}
    52 	}
    53 
    53 
    54 	// Build streaming websocket URL
    54 	// Build streaming websocket URL
    55 	u, err := url.Parse("ws" + mc.APIBase[4:] + "/streaming/")
    55 	u, err := url.Parse("ws" + mc.APIBase[4:] + "/v1/streaming/")
    56 	if err != nil {
    56 	if err != nil {
    57 		return nil, errors.Wrap(err, "cannot create Websocket URL")
    57 		return nil, errors.Wrap(err, "cannot create Websocket URL")
    58 	}
    58 	}
    59 
    59 
    60 	urlParams := url.Values{}
    60 	urlParams := url.Values{}