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
Hello there, I spotted an issue on https://pusher.com/docs/channels/server_api/authorizing-users/
The Go code snippet for Implementing the authorization endpoint for a private channel should —
import ( "fmt" "io/ioutil" "net/http" "github.com/pusher/pusher-http-go" ) var pusherClient = pusher.Client{ AppID: "", Key: "", Secret: "", Cluster: "", } ... rest of code snippet
io/ioutil
io
ioutil.ReadAll
io.ReadAll
pusher.MemberData
presenceData := pusher.MemberData{ UserId: "1", //should be UserID UserInfo: map[string]string{ "twitter": "pusher", }, }
fmt.Fprintf
fmt.Fprintf(res, response) // should be fmt.Fprintf(res, string(response))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello there, I spotted an issue on https://pusher.com/docs/channels/server_api/authorizing-users/
The Go code snippet for Implementing the authorization endpoint for a private channel should —
io/ioutil
is now deprecated and should be replaced with justio
. Accordingly,ioutil.ReadAll
should beio.ReadAll
Bonus issues
pusher.MemberData
line.fmt.Fprintf
line also has a tiny bugThe text was updated successfully, but these errors were encountered: