Skip to content

Commit

Permalink
Merge pull request #80 from ethereum/yann300-patch-6
Browse files Browse the repository at this point in the history
Set max size Frama/Message
  • Loading branch information
yann300 authored Aug 24, 2019
2 parents fbfe18d + 59a5149 commit 4c7c1cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/websocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ class WebSocket {

this.wsServer = new WebSocketServer({
httpServer: this.server,
autoAcceptConnections: false
autoAcceptConnections: false,
maxReceivedFrameSize: 131072,
maxReceivedMessageSize: 10 * 1024 * 1024,
})

this.wsServer.on('request', (request) => {
Expand Down

0 comments on commit 4c7c1cf

Please sign in to comment.