Skip to content

Commit

Permalink
increase size
Browse files Browse the repository at this point in the history
  • Loading branch information
gempir committed Feb 10, 2024
1 parent 792c742 commit 539bbc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/yjs/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import josnwebtoken from 'jsonwebtoken';
import WebSocket from 'ws';
import { setupWSConnection } from './util.cjs';

// max payload size is 128MB
const wss = new WebSocket.Server({ noServer: true, maxPayload: 1024 * 1024 * 128});
// max payload size is 512MB
const wss = new WebSocket.Server({ noServer: true, maxPayload: 1024 * 1024 * 512});

const host = process.env.HOST ?? '127.0.0.1'
const port = process.env.PORT ?? 1234
Expand Down

0 comments on commit 539bbc7

Please sign in to comment.