Skip to content

Instantly share code, notes, and snippets.

@pedrolopesme
Created March 11, 2018 04:55
Show Gist options
  • Save pedrolopesme/27f009cdae29b5c8cdb5f21888fdff5a to your computer and use it in GitHub Desktop.
Save pedrolopesme/27f009cdae29b5c8cdb5f21888fdff5a to your computer and use it in GitHub Desktop.
var upgrader = websocket.Upgrader{
ReadBufferSize: 1024,
WriteBufferSize: 1024,
CheckOrigin: func(r *http.Request) bool { return true },
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment