Modified WebSocket.cs

This commit is contained in:
sta
2013-06-09 15:10:05 +09:00
parent 41ab872107
commit 9ebab427bf
10 changed files with 2 additions and 8 deletions
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.
+2 -8
View File
@@ -842,12 +842,6 @@ namespace WebSocketSharp {
OnError.Emit(this, new ErrorEventArgs(message));
}
private void onMessage(MessageEventArgs eventArgs)
{
if (eventArgs != null)
OnMessage.Emit(this, eventArgs);
}
private void onOpen()
{
_readyState = WsState.OPEN;
@@ -911,7 +905,7 @@ namespace WebSocketSharp {
frame.Opcode, frame.PayloadData.ApplicationData.Decompress(_compression))
: new MessageEventArgs(frame.Opcode, frame.PayloadData);
onMessage(args);
OnMessage.Emit(this, args);
return true;
}
@@ -955,7 +949,7 @@ namespace WebSocketSharp {
data = concatenated.ToArray();
}
onMessage(new MessageEventArgs(first.Opcode, data));
OnMessage.Emit(this, new MessageEventArgs(first.Opcode, data));
}
}
Binary file not shown.