Skip to content

Commit

Permalink
[www/js/app] Quick fix to support larger initial world states
Browse files Browse the repository at this point in the history
  • Loading branch information
ghthor committed Mar 25, 2021
1 parent 1f02ce6 commit 6aac8c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion www/js/app/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ func initialize(settings js.Value) js.Value {
log.Print(err)
return
}

// TODO move this into a configuration option
ws.SetReadLimit(32768 * 2)
wsConn := websocket.NetConn(ctx, ws, websocket.MessageBinary)

loginConn := client.NewLoginConn(game.NewGobConn(wsConn))
Expand Down

0 comments on commit 6aac8c3

Please sign in to comment.