message recv bugfix 2

This commit is contained in:
lolcat 2024-01-20 13:57:41 -05:00
parent bc4663e3a7
commit e685a469f4
1 changed files with 2 additions and 1 deletions

View File

@ -393,7 +393,8 @@ class fuckwebsockets{
if($masked){
// get mask and message payload
$this->socket_recv($this->client, $frame_data, $messagelength + 4, MSG_WAITALL);
$messagelength += 4;
$this->socket_recv($this->client, $frame_data, $messagelength, MSG_WAITALL);
for($i=4; $i<$messagelength; $i++){