Skip to content

Commit

Permalink
+ Increase Websocket max payload size.
Browse files Browse the repository at this point in the history
  • Loading branch information
THORCOMP committed Jun 8, 2022
1 parent 79f25e7 commit bbb5911
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/API/Eulerian/EDW/WebSocket.pm
Original file line number Diff line number Diff line change
Expand Up @@ -155,15 +155,18 @@ sub join
my ( $self, $url, $hook ) = @_;
my $status = API::Eulerian::EDW::Status->new();
my $socket = $self->_socket();
my $bufsize = 252000;
my $bufsize = 4 * 1024 * 1024;
my $offset = 0;
my $buf = '';
my $read;
my $rfds;
my $peer;

# Create a Websocket
$peer = Protocol::WebSocket::Client->new( url => $url );
$peer = Protocol::WebSocket::Client->new(
url => $url,
max_payload_size => $bufsize
);

# Setup Websocket hooks
$peer->on( write => \&API::Eulerian::EDW::WebSocket::_on_write );
Expand Down

0 comments on commit bbb5911

Please sign in to comment.