Skip to content

Commit

Permalink
Increase max payload size
Browse files Browse the repository at this point in the history
Summary: ^

Reviewed By: passy, antonk52

Differential Revision: D48644784

fbshipit-source-id: 2cd0aeed94c31553243e1b335adbd4089feb0d7e
  • Loading branch information
lblasa authored and facebook-github-bot committed Aug 24, 2023
1 parent a275235 commit 865d551
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ export interface ConnectionCtx {
request: IncomingMessage;
}

// Based on https://github.com/websockets/ws/blob/master/lib/websocket-server.js#L40,
// exposed to share with socket.io defaults.
export const WEBSOCKET_MAX_MESSAGE_SIZE = 100 * 1024 * 1024;
// This is the maximum size of a message that can be received in a single websocket message.
export const WEBSOCKET_MAX_MESSAGE_SIZE = Math.pow(2, 53) - 1;

/**
* It serves as a base class for WebSocket based servers. It delegates the 'connection'
Expand Down

0 comments on commit 865d551

Please sign in to comment.