Fix for issue #34
This commit is contained in:
parent
6909489f4c
commit
e661827d09
@ -505,7 +505,9 @@ namespace WebSocketSharp
|
||||
frame.Opcode, frame.PayloadData.ApplicationData.Decompress (_compression))
|
||||
: new MessageEventArgs (frame.Opcode, frame.PayloadData);
|
||||
|
||||
if (_readyState == WebSocketState.Open)
|
||||
OnMessage.Emit (this, args);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -558,7 +560,9 @@ namespace WebSocketSharp
|
||||
data = concatenated.ToArray ();
|
||||
}
|
||||
|
||||
if (_readyState == WebSocketState.Open)
|
||||
OnMessage.Emit (this, new MessageEventArgs (first.Opcode, data));
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user