We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey Guys,
just bumped into this websocket topic and tried out this pkg for connecting to an open API. Maybe I am doing something wrong
Go Version: go1.13.5 darwin/amd64 (at Mac)
My Code:
func (api BrokerAPI) setupUpdateStream() { type authData struct { KeyID string `json:"key_id"` SecretKey string `json:"secret_key"` } type streamAuthAction struct { Action string `json:"action"` Data interface{} `json:"data"` } streamURL := fmt.Sprintf("ws://%s/%s/%s", api.URL, apiVersion, streamEndpoint) socket := gowebsocket.New(streamURL) socket.Connect() streamAuthData := streamAuthAction{Action: "authenticate", Data: authData{KeyID: api.Key, SecretKey: api.Secret}} parsedAuthData, authErr := json.Marshal(streamAuthData) if authErr != nil { log.Fatalf("Authentication failed, because stream messages: %s", authErr) } socket.SendBinary(parsedAuthData) ... }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hey Guys,
just bumped into this websocket topic and tried out this pkg for connecting to an open API. Maybe I am doing something wrong
Go Version: go1.13.5 darwin/amd64 (at Mac)
My Code:
The text was updated successfully, but these errors were encountered: