Modified WebSocket.cs
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -842,12 +842,6 @@ namespace WebSocketSharp {
|
|||||||
OnError.Emit(this, new ErrorEventArgs(message));
|
OnError.Emit(this, new ErrorEventArgs(message));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void onMessage(MessageEventArgs eventArgs)
|
|
||||||
{
|
|
||||||
if (eventArgs != null)
|
|
||||||
OnMessage.Emit(this, eventArgs);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void onOpen()
|
private void onOpen()
|
||||||
{
|
{
|
||||||
_readyState = WsState.OPEN;
|
_readyState = WsState.OPEN;
|
||||||
@@ -911,7 +905,7 @@ namespace WebSocketSharp {
|
|||||||
frame.Opcode, frame.PayloadData.ApplicationData.Decompress(_compression))
|
frame.Opcode, frame.PayloadData.ApplicationData.Decompress(_compression))
|
||||||
: new MessageEventArgs(frame.Opcode, frame.PayloadData);
|
: new MessageEventArgs(frame.Opcode, frame.PayloadData);
|
||||||
|
|
||||||
onMessage(args);
|
OnMessage.Emit(this, args);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -955,7 +949,7 @@ namespace WebSocketSharp {
|
|||||||
data = concatenated.ToArray();
|
data = concatenated.ToArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
onMessage(new MessageEventArgs(first.Opcode, data));
|
OnMessage.Emit(this, new MessageEventArgs(first.Opcode, data));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Binary file not shown.
Reference in New Issue
Block a user