From b81576f69681403df02e0cb97409f6ba1e702f60 Mon Sep 17 00:00:00 2001 From: Zach <51892493+zachshattuck@users.noreply.github.com> Date: Sun, 22 Sep 2024 18:57:41 -0600 Subject: [PATCH] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index c7dc0a7..a0d444e 100644 --- a/README.md +++ b/README.md @@ -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)