Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zachshattuck authored Sep 23, 2024
1 parent fd5c603 commit b81576f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ func main() {
os.Exit(1)
}

buf := make([]byte, 4096)

// Will `Read` from the connection and send a `101 Switching Protocols` response
// if valid, otherwise sends a `400 Bad Request` response.
err := gows.UpgradeConnection(&conn, buf)
Expand Down

0 comments on commit b81576f

Please sign in to comment.