From 755e95d9042ce93db29322921db3d3f7116e6f01 Mon Sep 17 00:00:00 2001 From: sta Date: Thu, 23 Jan 2014 17:45:39 +0900 Subject: [PATCH] Modified Step 3 of 'WebSocket Client' --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 58944a2b..a52699f0 100644 --- a/README.md +++ b/README.md @@ -127,7 +127,7 @@ ws.OnMessage += (sender, e) => { `e` has passed as a `WebSocketSharp.MessageEventArgs`. -`e.Type` property (returns one of the `WebSocketSharp.Opcode` enum values) represents the type of the received message. So by checking it, you determine which item you should use. +`e.Type` property (returns either `WebSocketSharp.Opcode.TEXT` or `WebSocketSharp.Opcode.BINARY`) represents the type of the received message. So by checking it, you determine which item you should use. If `e.Type` is `Opcode.TEXT`, you should use `e.Data` property (returns a `string`) that represents the received **Text** message.