set max size

pull/3094/head
yann300 5 years ago committed by GitHub
parent 3805979c62
commit 195b778737
  1. 4
      src/websocket.js

@ -22,7 +22,9 @@ class WebSocket {
this.wsServer = new WebSocketServer({ this.wsServer = new WebSocketServer({
httpServer: this.server, httpServer: this.server,
autoAcceptConnections: false autoAcceptConnections: false,
maxReceivedFrameSize: 131072,
maxReceivedMessageSize: 10 * 1024 * 1024,
}) })
this.wsServer.on('request', (request) => { this.wsServer.on('request', (request) => {

Loading…
Cancel
Save