diff --git a/Example/Example.csproj b/Example/Example.csproj new file mode 100644 index 00000000..ea12fe91 --- /dev/null +++ b/Example/Example.csproj @@ -0,0 +1,69 @@ + + + + Debug + AnyCPU + 9.0.21022 + 2.0 + {52805AEC-EFB1-4F42-BB8E-3ED4E692C568} + Exe + Example + example + v3.5 + . + + + true + full + false + bin\Debug + DEBUG + prompt + 4 + true + + + none + false + bin\Release + prompt + 4 + true + + + true + full + false + bin\Debug_Ubuntu + DEBUG,NOTIFY + prompt + 4 + true + + + none + false + bin\Release_Ubuntu + NOTIFY + prompt + 4 + true + + + + + notify-sharp + + + + + {B357BAC7-529E-4D81-A0D2-71041B19C8DE} + websocket-sharp + + + + + + + + \ No newline at end of file diff --git a/Example/Example.pidb b/Example/Example.pidb new file mode 100644 index 00000000..bd18f672 Binary files /dev/null and b/Example/Example.pidb differ diff --git a/Example/bin/Debug/example.exe b/Example/bin/Debug/example.exe new file mode 100755 index 00000000..075e308f Binary files /dev/null and b/Example/bin/Debug/example.exe differ diff --git a/Example/bin/Debug/example.exe.mdb b/Example/bin/Debug/example.exe.mdb new file mode 100644 index 00000000..8c77fe71 Binary files /dev/null and b/Example/bin/Debug/example.exe.mdb differ diff --git a/Example/bin/Debug/websocket-sharp.dll b/Example/bin/Debug/websocket-sharp.dll new file mode 100755 index 00000000..6fd6c13b Binary files /dev/null and b/Example/bin/Debug/websocket-sharp.dll differ diff --git a/Example/bin/Debug/websocket-sharp.dll.mdb b/Example/bin/Debug/websocket-sharp.dll.mdb new file mode 100644 index 00000000..695ceb15 Binary files /dev/null and b/Example/bin/Debug/websocket-sharp.dll.mdb differ diff --git a/Example/bin/Debug_Ubuntu/example.exe b/Example/bin/Debug_Ubuntu/example.exe new file mode 100755 index 00000000..4328cab3 Binary files /dev/null and b/Example/bin/Debug_Ubuntu/example.exe differ diff --git a/Example/bin/Debug_Ubuntu/example.exe.mdb b/Example/bin/Debug_Ubuntu/example.exe.mdb new file mode 100644 index 00000000..7203875e Binary files /dev/null and b/Example/bin/Debug_Ubuntu/example.exe.mdb differ diff --git a/Example/bin/Debug_Ubuntu/websocket-sharp.dll b/Example/bin/Debug_Ubuntu/websocket-sharp.dll new file mode 100755 index 00000000..4b8d81cb Binary files /dev/null and b/Example/bin/Debug_Ubuntu/websocket-sharp.dll differ diff --git a/Example/bin/Debug_Ubuntu/websocket-sharp.dll.mdb b/Example/bin/Debug_Ubuntu/websocket-sharp.dll.mdb new file mode 100644 index 00000000..f26ae797 Binary files /dev/null and b/Example/bin/Debug_Ubuntu/websocket-sharp.dll.mdb differ diff --git a/Example/bin/Release/example.exe b/Example/bin/Release/example.exe new file mode 100755 index 00000000..05a56e8d Binary files /dev/null and b/Example/bin/Release/example.exe differ diff --git a/Example/bin/Release/websocket-sharp.dll b/Example/bin/Release/websocket-sharp.dll new file mode 100755 index 00000000..0096e74e Binary files /dev/null and b/Example/bin/Release/websocket-sharp.dll differ diff --git a/Example/bin/Release_Ubuntu/example.exe b/Example/bin/Release_Ubuntu/example.exe new file mode 100755 index 00000000..4bfd5bea Binary files /dev/null and b/Example/bin/Release_Ubuntu/example.exe differ diff --git a/Example/bin/Release_Ubuntu/websocket-sharp.dll b/Example/bin/Release_Ubuntu/websocket-sharp.dll new file mode 100755 index 00000000..eed7a63f Binary files /dev/null and b/Example/bin/Release_Ubuntu/websocket-sharp.dll differ diff --git a/Example1/Example1.pidb b/Example1/Example1.pidb new file mode 100644 index 00000000..b5082acb Binary files /dev/null and b/Example1/Example1.pidb differ diff --git a/Example1/bin/Debug/example1.exe b/Example1/bin/Debug/example1.exe new file mode 100755 index 00000000..f37ceb2b Binary files /dev/null and b/Example1/bin/Debug/example1.exe differ diff --git a/Example1/bin/Debug/example1.exe.mdb b/Example1/bin/Debug/example1.exe.mdb new file mode 100644 index 00000000..9f23f439 Binary files /dev/null and b/Example1/bin/Debug/example1.exe.mdb differ diff --git a/Example1/bin/Debug/websocket-sharp.dll b/Example1/bin/Debug/websocket-sharp.dll new file mode 100755 index 00000000..6fd6c13b Binary files /dev/null and b/Example1/bin/Debug/websocket-sharp.dll differ diff --git a/Example1/bin/Debug/websocket-sharp.dll.mdb b/Example1/bin/Debug/websocket-sharp.dll.mdb new file mode 100644 index 00000000..695ceb15 Binary files /dev/null and b/Example1/bin/Debug/websocket-sharp.dll.mdb differ diff --git a/Example1/bin/Debug_Ubuntu/example1.exe b/Example1/bin/Debug_Ubuntu/example1.exe new file mode 100755 index 00000000..3c365f20 Binary files /dev/null and b/Example1/bin/Debug_Ubuntu/example1.exe differ diff --git a/Example1/bin/Debug_Ubuntu/example1.exe.mdb b/Example1/bin/Debug_Ubuntu/example1.exe.mdb new file mode 100644 index 00000000..45364548 Binary files /dev/null and b/Example1/bin/Debug_Ubuntu/example1.exe.mdb differ diff --git a/Example1/bin/Debug_Ubuntu/websocket-sharp.dll b/Example1/bin/Debug_Ubuntu/websocket-sharp.dll new file mode 100755 index 00000000..4b8d81cb Binary files /dev/null and b/Example1/bin/Debug_Ubuntu/websocket-sharp.dll differ diff --git a/Example1/bin/Debug_Ubuntu/websocket-sharp.dll.mdb b/Example1/bin/Debug_Ubuntu/websocket-sharp.dll.mdb new file mode 100644 index 00000000..f26ae797 Binary files /dev/null and b/Example1/bin/Debug_Ubuntu/websocket-sharp.dll.mdb differ diff --git a/Example1/bin/Release/example1.exe b/Example1/bin/Release/example1.exe new file mode 100755 index 00000000..137862de Binary files /dev/null and b/Example1/bin/Release/example1.exe differ diff --git a/Example1/bin/Release/websocket-sharp.dll b/Example1/bin/Release/websocket-sharp.dll new file mode 100755 index 00000000..0096e74e Binary files /dev/null and b/Example1/bin/Release/websocket-sharp.dll differ diff --git a/Example1/bin/Release_Ubuntu/example1.exe b/Example1/bin/Release_Ubuntu/example1.exe new file mode 100755 index 00000000..0d09b87c Binary files /dev/null and b/Example1/bin/Release_Ubuntu/example1.exe differ diff --git a/Example1/bin/Release_Ubuntu/websocket-sharp.dll b/Example1/bin/Release_Ubuntu/websocket-sharp.dll new file mode 100755 index 00000000..eed7a63f Binary files /dev/null and b/Example1/bin/Release_Ubuntu/websocket-sharp.dll differ diff --git a/README.md b/README.md index 1f332f09..01fc1e6d 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ So `WebSocket` class inherits `IDisposable` interface, you can use `using` state ### Step 3 ### -Setting of `WebSocket` event handlers. +Setting `WebSocket` event handlers. #### WebSocket.OnOpen event #### @@ -64,7 +64,7 @@ So **type** of received WebSocket data frame is stored in `e.Type` (`WebSocketSh If `e.Type` is `Opcode.TEXT`, you operate `e.Data` (`WebSocketSharp.MessageEventArgs.Data`, its type is `string`). -if `e.Type` is `Opcode.BINARY`, you operate `e.RawData` (`WebSocketSharp.MessageEventArgs.RawData`, its type is `byte[]`). +If `e.Type` is `Opcode.BINARY`, you operate `e.RawData` (`WebSocketSharp.MessageEventArgs.RawData`, its type is `byte[]`). #### WebSocket.OnError event #### @@ -75,7 +75,7 @@ if `e.Type` is `Opcode.BINARY`, you operate `e.RawData` (`WebSocketSharp.Message ... }; -So error message is stored in `e.Data` (`WebSocketSharp.MessageEventArgs.Data`, its type is `string`) , you operate it. +So error message is stored in `e.Data` (`WebSocketSharp.MessageEventArgs.Data`, its type is `string`), you operate it. #### WebSocket.OnClose event #### @@ -102,7 +102,7 @@ Sending data. `WebSocket.Send` method is overloaded. -data types are `string`, `byte[]` and `FileInfo` class. +`data` types are `string`, `byte[]` and `FileInfo` class. ### Step 6 ### diff --git a/websocket-sharp.userprefs b/websocket-sharp.userprefs index b782827f..cb5cca4b 100644 --- a/websocket-sharp.userprefs +++ b/websocket-sharp.userprefs @@ -1,8 +1,8 @@  - + - + diff --git a/websocket-sharp/bin/Debug/websocket-sharp.dll b/websocket-sharp/bin/Debug/websocket-sharp.dll new file mode 100755 index 00000000..6fd6c13b Binary files /dev/null and b/websocket-sharp/bin/Debug/websocket-sharp.dll differ diff --git a/websocket-sharp/bin/Debug/websocket-sharp.dll.mdb b/websocket-sharp/bin/Debug/websocket-sharp.dll.mdb new file mode 100644 index 00000000..695ceb15 Binary files /dev/null and b/websocket-sharp/bin/Debug/websocket-sharp.dll.mdb differ diff --git a/websocket-sharp/websocket-sharp.pidb b/websocket-sharp/websocket-sharp.pidb index 566f78e9..ba958474 100644 Binary files a/websocket-sharp/websocket-sharp.pidb and b/websocket-sharp/websocket-sharp.pidb differ