diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-12 10:46:54 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-12 10:46:54 +0900 |
| commit | 1cd22671a6bacaa7bde2cd17f78a5ba8899e8d40 (patch) | |
| tree | b899e4e5104e78a0e4694486d0cbe717b5969302 | |
| parent | 5384ece19deeb40a78b8088a429b1f1c2f7cb332 (diff) | |
| download | iosdc-japan-2024-albatross-1cd22671a6bacaa7bde2cd17f78a5ba8899e8d40.tar.gz iosdc-japan-2024-albatross-1cd22671a6bacaa7bde2cd17f78a5ba8899e8d40.tar.zst iosdc-japan-2024-albatross-1cd22671a6bacaa7bde2cd17f78a5ba8899e8d40.zip | |
feat(backend): increase max WebSocket message size from 512 byte to 50 KiB
| -rw-r--r-- | backend/game/ws.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/game/ws.go b/backend/game/ws.go index 0dbd0ab..47dc7cf 100644 --- a/backend/game/ws.go +++ b/backend/game/ws.go @@ -12,7 +12,7 @@ const ( writeWait = 10 * time.Second pongWait = 60 * time.Second pingPeriod = (pongWait * 9) / 10 - maxMessageSize = 512 + maxMessageSize = 50 * 1024 ) var upgrader = websocket.Upgrader{ |
