Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge original #1

Open
wants to merge 2,959 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2959 commits
Select commit Hold shift + click to select a range
e45e366
[Modify] Edit it
sta Apr 30, 2024
d7ecfab
[Modify] Edit it
sta May 1, 2024
83d2ccb
[Modify] Edit it
sta May 1, 2024
3897de5
[Modify] Edit it
sta May 2, 2024
5a3e6a4
[Modify] Polish it
sta May 3, 2024
4d51629
[Modify] Edit it
sta May 4, 2024
ed4e8d1
[Modify] Edit it
sta May 5, 2024
676cae2
[Modify] Edit it
sta May 6, 2024
574de40
[Modify] Edit it
sta May 7, 2024
e163177
[Modify] Edit it
sta May 7, 2024
fddedea
[Modify] Edit it
sta May 8, 2024
c6ad9a1
[Modify] Polish it
sta May 9, 2024
9a57682
[Modify] 2024
sta May 10, 2024
7468911
[Modify] Polish it
sta May 11, 2024
c93f355
[Modify] 2024
sta May 12, 2024
a4ae46b
[Modify] Edit it
sta May 13, 2024
29f19bf
[Modify] Edit it
sta May 13, 2024
4b9ea3a
[Modify] Edit it
sta May 14, 2024
196aed4
[Modify] Edit it
sta May 15, 2024
f97579c
[Modify] Polish it
sta May 16, 2024
4e7cd86
[Modify] Edit it
sta May 17, 2024
caca4b3
[Modify] Edit it
sta May 18, 2024
3f2061f
[Modify] Edit it
sta May 19, 2024
408199b
[Modify] Edit it
sta May 20, 2024
f101c44
[Modify] Edit it
sta May 21, 2024
0681bc9
[Modify] Edit it
sta May 21, 2024
b03c5aa
[Modify] Edit it
sta May 22, 2024
859e955
[Modify] Edit it
sta May 23, 2024
de61f94
[Modify] Edit it
sta May 24, 2024
f2585dc
[Modify] Edit it
sta May 25, 2024
50f26c3
[Modify] Edit it
sta May 26, 2024
80ef95e
[Modify] Edit it
sta May 27, 2024
f894845
[Modify] Edit it
sta May 28, 2024
b99d4a8
[Modify] Edit it
sta May 29, 2024
bd9af6e
[Modify] Edit it
sta May 30, 2024
303b2c8
[Modify] Edit it
sta May 30, 2024
11793b6
[Modify] Edit it
sta May 31, 2024
e7fdba4
[Modify] Edit it
sta May 31, 2024
5b0b601
[Modify] Edit it
sta Jun 1, 2024
3552fdf
[Modify] Edit it
sta Jun 1, 2024
4679838
[Modify] Edit it
sta Jun 2, 2024
3af0a67
[Modify] Edit it
sta Jun 3, 2024
613fea0
[Modify] Edit it
sta Jun 4, 2024
a22cac5
[Modify] Polish it
sta Jun 5, 2024
b832e80
[Modify] Polish it
sta Jun 6, 2024
d8172ec
[Modify] Polish it
sta Jun 6, 2024
fef5ee7
[Modify] Edit it
sta Jun 7, 2024
7be6d19
[Modify] Edit it
sta Jun 8, 2024
77036d4
[Modify] Edit it
sta Jun 9, 2024
474ea66
[Modify] Edit it
sta Jun 9, 2024
a5d70b4
[Modify] Edit it
sta Jun 10, 2024
ec44325
[Modify] Edit it
sta Jun 11, 2024
b6c4ec0
[Modify] Edit it
sta Jun 12, 2024
f5c1f20
[Modify] Lock it
sta Jun 13, 2024
46b6e15
[Modify] 2024
sta Jun 14, 2024
11c20ce
[Modify] Edit it
sta Jun 15, 2024
5c20954
[Modify] Edit it
sta Jun 16, 2024
fb415bc
[Modify] Edit it
sta Jun 17, 2024
9a327a2
[Modify] Edit it
sta Jun 17, 2024
9c2669c
[Modify] Edit it
sta Jun 18, 2024
fb88f55
[Modify] Edit it
sta Jun 18, 2024
a5dbe37
[Modify] Edit it
sta Jun 19, 2024
7b2b50c
[Modify] Edit it
sta Jun 19, 2024
44cbd0c
[Modify] Edit it
sta Jun 20, 2024
0ae2713
[Modify] Edit it
sta Jun 20, 2024
09dda40
[Modify] Edit it
sta Jun 21, 2024
d9b4674
[Modify] Edit it
sta Jun 22, 2024
b439b42
[Modify] Edit it
sta Jun 23, 2024
2612d51
[Modify] Edit it
sta Jun 24, 2024
259f70d
[Modify] Edit it
sta Jun 25, 2024
79e751c
[Modify] Edit it
sta Jun 26, 2024
9e0d780
[Modify] Edit it
sta Jun 27, 2024
1898bef
[Modify] Edit it
sta Jun 28, 2024
559c4c1
[Modify] Edit it
sta Jun 29, 2024
7240536
[Modify] Polish it
sta Jun 30, 2024
1f627f4
[Modify] Edit it
sta Jul 1, 2024
079c765
[Modify] Edit it
sta Jul 2, 2024
2625210
[Modify] Edit it
sta Jul 3, 2024
5f003eb
[Modify] Edit it
sta Jul 4, 2024
5717a35
[Modify] 2024
sta Jul 5, 2024
eca7bbb
[Modify] Polish it
sta Jul 6, 2024
db7adae
[Modify] Polish it
sta Jul 7, 2024
4cdb5a3
[Modify] 2024
sta Jul 8, 2024
7bd3f82
[Modify] Polish it
sta Jul 9, 2024
bd665ed
[Modify] Polish it
sta Jul 10, 2024
40699a3
[Modify] Polish it
sta Jul 11, 2024
3234f79
[Modify] Polish it
sta Jul 12, 2024
2db57ac
[Modify] 2024
sta Jul 13, 2024
c5941eb
[Modify] Polish it
sta Jul 14, 2024
78e12e3
[Modify] Polish it
sta Jul 15, 2024
fade916
[Modify] Polish it
sta Jul 16, 2024
8cf22d6
[Modify] Polish it
sta Jul 17, 2024
92415c9
[Modify] 2024
sta Jul 18, 2024
2606dee
[Modify] Polish it
sta Jul 19, 2024
24ac030
[Modify] Polish it
sta Jul 20, 2024
f0e417f
[Modify] Polish it
sta Jul 21, 2024
1e1ac97
[Modify] Polish it
sta Jul 21, 2024
db77353
[Modify] Polish it
sta Jul 22, 2024
3fb34be
[Modify] Polish it
sta Jul 23, 2024
1570289
[Modify] Polish it
sta Jul 24, 2024
ae2b4f3
[Modify] 2024
sta Jul 25, 2024
38d5285
[Modify] Polish it
sta Jul 26, 2024
a0f3380
[Modify] Polish it
sta Jul 27, 2024
37f3891
[Modify] Polish it
sta Jul 28, 2024
58ee950
[Modify] Polish it
sta Jul 29, 2024
37a765f
[Modify] Polish it
sta Jul 30, 2024
a28b8d1
[Modify] Polish it
sta Jul 31, 2024
94c9f7f
[Modify] Edit it
sta Aug 1, 2024
46f3429
[Modify] 2024
sta Aug 2, 2024
6546afd
[Modify] Polish it
sta Aug 3, 2024
5e68d74
[Modify] Edit it
sta Aug 4, 2024
f2f40ac
[Modify] Edit it
sta Aug 5, 2024
e599731
[Modify] Edit it
sta Aug 6, 2024
e88b241
[Modify] Edit it
sta Aug 7, 2024
54dc7ed
[Modify] Polish it
sta Aug 8, 2024
3424ce4
[Modify] 2024
sta Aug 9, 2024
9fcc41c
[Modify] Edit it
sta Aug 10, 2024
0b051f4
[Modify] Edit it
sta Aug 11, 2024
2dad6e6
[Modify] Edit it
sta Aug 12, 2024
16c0224
[Modify] Edit it
sta Aug 13, 2024
c61dca5
[Modify] Polish it
sta Aug 14, 2024
e3d7d8f
[Modify] 2024
sta Aug 15, 2024
a5b35b5
[Modify] Polish it
sta Aug 16, 2024
2cf6883
[Modify] Polish it
sta Aug 16, 2024
69da4e3
[Modify] Polish it
sta Aug 17, 2024
79db8b5
[Modify] Polish it
sta Aug 18, 2024
0e8023e
[Modify] Polish it
sta Aug 18, 2024
c46b5fe
[Modify] Polish it
sta Aug 19, 2024
2b61bd4
[Modify] Polish it
sta Aug 20, 2024
2ba866e
[Modify] Polish it
sta Aug 20, 2024
3ebcb81
[Modify] Polish it
sta Aug 21, 2024
f00dad7
[Modify] Polish it
sta Aug 22, 2024
55825ba
[Modify] Polish it
sta Aug 23, 2024
dea136f
[Modify] Polish it
sta Aug 24, 2024
189962d
[Modify] Polish it
sta Aug 25, 2024
83fac76
[Modify] Polish it
sta Aug 26, 2024
dce6b84
[Modify] Polish it
sta Aug 27, 2024
247bc21
[Modify] Polish it
sta Aug 27, 2024
75a86a2
[Modify] Polish it
sta Aug 28, 2024
1181248
[Modify] Polish it
sta Aug 28, 2024
b08cb45
[Modify] Polish it
sta Aug 29, 2024
54dbb39
[Modify] Polish it
sta Aug 30, 2024
ca39edc
[Modify] Polish it
sta Aug 31, 2024
47a781c
[Modify] Polish it
sta Sep 1, 2024
3cde288
[Modify] Polish it
sta Sep 2, 2024
958fd85
[Modify] Polish it
sta Sep 2, 2024
ce63d22
[Modify] Polish it
sta Sep 3, 2024
2c65155
[Modify] Polish it
sta Sep 4, 2024
df9d51d
[Modify] Polish it
sta Sep 5, 2024
d461bf1
[Modify] 2024
sta Sep 6, 2024
d9c2d9b
[Modify] Edit it
sta Sep 7, 2024
3d3c412
[Modify] Polish it
sta Sep 8, 2024
ee3808e
[Modify] Edit it
sta Sep 9, 2024
14ce024
[Modify] Edit it
sta Sep 10, 2024
d9653d3
[Modify] Polish it
sta Sep 11, 2024
2490b03
[Modify] Polish it
sta Sep 11, 2024
5d9d135
[Modify] Polish it
sta Sep 12, 2024
ff858f1
[Modify] Polish it
sta Sep 12, 2024
e4d24a5
[Modify] Polish it
sta Sep 13, 2024
504f651
[Modify] Edit it
sta Sep 14, 2024
cf64c26
[Modify] Edit it
sta Sep 15, 2024
451dba7
[Modify] Polish it
sta Sep 16, 2024
49826e8
[Modify] Polish it
sta Sep 16, 2024
708431f
[Modify] Edit it
sta Sep 17, 2024
921a87b
[Modify] Polish it
sta Sep 17, 2024
14c1be1
[Modify] Polish it
sta Sep 18, 2024
b797b8d
[Modify] Polish it
sta Sep 18, 2024
011a4c2
[Modify] Edit it
sta Sep 19, 2024
f1a168c
[Modify] Polish it
sta Sep 19, 2024
3f807c0
[Modify] Edit it
sta Sep 20, 2024
764c100
[Modify] Edit it
sta Sep 20, 2024
30489e2
[Modify] Edit it
sta Sep 21, 2024
1800efd
[Modify] Edit it
sta Sep 22, 2024
7ded323
[Modify] Edit it
sta Sep 23, 2024
24baeb3
[Modify] Edit it
sta Sep 24, 2024
f0d2d65
[Modify] Edit it
sta Sep 25, 2024
1ca1529
[Modify] Edit it
sta Sep 26, 2024
77cf431
[Modify] Edit it
sta Sep 26, 2024
b9d43fa
[Modify] 2024
sta Sep 27, 2024
6c202e8
[Modify] Polish it
sta Sep 28, 2024
f3df7a1
[Modify] Polish it
sta Sep 29, 2024
96c88b1
[Modify] Polish it
sta Sep 30, 2024
9e6b503
[Modify] 2024
sta Oct 1, 2024
428c90f
[Modify] Polish it
sta Oct 2, 2024
16a34b1
[Modify] Polish it
sta Oct 3, 2024
a2d492f
[Modify] Polish it
sta Oct 4, 2024
86eaab0
[Modify] Polish it
sta Oct 5, 2024
2b48651
[Modify] Polish it
sta Oct 6, 2024
2783f2d
[Modify] Polish it
sta Oct 7, 2024
35d3eeb
[Modify] Polish it
sta Oct 8, 2024
cc95bd2
[Modify] Polish it
sta Oct 9, 2024
e310fb2
[Modify] Polish it
sta Oct 10, 2024
fa351f1
[Modify] Polish it
sta Oct 11, 2024
129c570
[Modify] Polish it
sta Oct 12, 2024
2debbf2
[Modify] Polish it
sta Oct 13, 2024
040e96f
[Modify] Polish it
sta Oct 14, 2024
dc190d8
[Modify] Polish it
sta Oct 15, 2024
b882f81
[Modify] Polish it
sta Oct 16, 2024
558bed2
[Modify] Use UTF-8
sta Oct 17, 2024
60b7645
[Modify] Polish it
sta Oct 18, 2024
44e8b78
[Modify] Polish it
sta Oct 19, 2024
938a121
[Modify] Edit it
sta Oct 20, 2024
e7514f8
[Modify] 2024
sta Oct 21, 2024
2c74375
[Modify] Edit it
sta Oct 22, 2024
e22e6fe
[Modify] Edit it
sta Oct 23, 2024
f1770b9
[Modify] Edit it
sta Oct 24, 2024
5d27254
[Modify] Edit it
sta Oct 25, 2024
8e1f511
[Modify] Edit it
sta Oct 26, 2024
991bf62
[Modify] Edit it
sta Oct 27, 2024
e692b81
[Modify] Edit it
sta Oct 28, 2024
2ecd706
[Modify] 2024
sta Oct 29, 2024
dc3c6e4
[Modify] Edit it
sta Oct 30, 2024
ad08726
[Modify] Edit it
sta Oct 31, 2024
0e86839
[Modify] Edit it
sta Nov 1, 2024
33ae1f9
[Modify] Edit it
sta Nov 2, 2024
4b1efa9
[Modify] Edit it
sta Nov 3, 2024
78a9808
[Modify] 2024
sta Nov 4, 2024
81bc74d
[Modify] Edit it
sta Nov 4, 2024
326f77d
[Modify] Edit it
sta Nov 4, 2024
ee42ec0
[Modify] Edit it
sta Nov 4, 2024
91a38aa
[Modify] Edit it
sta Nov 5, 2024
3531202
[Modify] Change the default value of the KeepClean property to false
sta Nov 6, 2024
9fbea8e
[Modify] Polish it
sta Nov 7, 2024
3defaa8
[Modify] Edit it
sta Nov 7, 2024
f43d286
[Modify] Polish it
sta Nov 8, 2024
5f53b53
[Modify] Polish it
sta Nov 9, 2024
9f84131
[Modify] 2024
sta Nov 10, 2024
3bb01b7
[Modify] Edit it
sta Nov 11, 2024
07a864f
[Modify] Edit it
sta Nov 12, 2024
03dd868
[Modify] Edit it
sta Nov 13, 2024
1485684
[Modify] Edit it
sta Nov 13, 2024
23c3a49
[Modify] Polish it
sta Nov 14, 2024
b334186
[Modify] 2024
sta Nov 15, 2024
638ef4a
[Modify] Log it
sta Nov 16, 2024
3e8a0b5
[Modify] Edit it
sta Nov 17, 2024
6ad5279
[Modify] Edit it
sta Nov 18, 2024
8b1872d
[Modify] 2024
sta Nov 18, 2024
dd17863
[Modify] Edit it
sta Nov 19, 2024
1f3f297
[Modify] Edit it
sta Nov 20, 2024
be6ad77
[Modify] Edit it
sta Nov 21, 2024
36c81ab
[Modify] Edit it
sta Nov 22, 2024
d577a25
[Modify] Polish it
sta Nov 23, 2024
8b05aa6
[Modify] Edit it
sta Nov 24, 2024
d496b50
[Modify] Edit it
sta Nov 25, 2024
2ac9218
[Modify] Edit it
sta Nov 26, 2024
823836d
[Modify] Edit it
sta Nov 27, 2024
a4f20a9
[Modify] Edit it
sta Nov 27, 2024
b408e20
[Modify] Edit it
sta Nov 28, 2024
f78f69e
[Modify] Edit it
sta Nov 29, 2024
f0b48c1
[Modify] 2024
sta Nov 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions Example/Example.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug_Ubuntu</OutputPath>
<DefineConstants>DEBUG,UBUNTU</DefineConstants>
<DefineConstants>DEBUG</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Externalconsole>true</Externalconsole>
Expand All @@ -43,16 +43,12 @@
<DebugType>none</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Release_Ubuntu</OutputPath>
<DefineConstants>UBUNTU</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Externalconsole>true</Externalconsole>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="notify-sharp, Version=0.4.0.0, Culture=neutral, PublicKeyToken=2df29c54e245917a">
<Package>notify-sharp</Package>
</Reference>
<Reference Include="System.Core" />
</ItemGroup>
<ItemGroup>
Expand All @@ -65,7 +61,5 @@
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="AssemblyInfo.cs" />
<Compile Include="Notifier.cs" />
<Compile Include="NotificationMessage.cs" />
</ItemGroup>
</Project>
24 changes: 0 additions & 24 deletions Example/NotificationMessage.cs

This file was deleted.

81 changes: 0 additions & 81 deletions Example/Notifier.cs

This file was deleted.

67 changes: 28 additions & 39 deletions Example/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,8 @@ public static void Main (string[] args)
// If you would like to connect to the server with the secure connection,
// you should create a new instance with a wss scheme WebSocket URL.

using (var nf = new Notifier ())
using (var ws = new WebSocket ("ws://echo.websocket.org"))
//using (var ws = new WebSocket ("wss://echo.websocket.org"))
//using (var ws = new WebSocket ("ws://localhost:4649/Echo"))
using (var ws = new WebSocket ("ws://localhost:4649/Echo"))
//using (var ws = new WebSocket ("wss://localhost:5963/Echo"))
//using (var ws = new WebSocket ("ws://localhost:4649/Echo?name=nobita"))
//using (var ws = new WebSocket ("wss://localhost:5963/Echo?name=nobita"))
//using (var ws = new WebSocket ("ws://localhost:4649/Chat"))
//using (var ws = new WebSocket ("wss://localhost:5963/Chat"))
//using (var ws = new WebSocket ("ws://localhost:4649/Chat?name=nobita"))
Expand All @@ -34,32 +29,24 @@ public static void Main (string[] args)

ws.OnOpen += (sender, e) => ws.Send ("Hi, there!");

ws.OnMessage += (sender, e) =>
nf.Notify (
new NotificationMessage {
Summary = "WebSocket Message",
Body = !e.IsPing ? e.Data : "Received a ping.",
Icon = "notification-message-im"
}
);

ws.OnError += (sender, e) =>
nf.Notify (
new NotificationMessage {
Summary = "WebSocket Error",
Body = e.Message,
Icon = "notification-message-im"
}
);

ws.OnClose += (sender, e) =>
nf.Notify (
new NotificationMessage {
Summary = String.Format ("WebSocket Close ({0})", e.Code),
Body = e.Reason,
Icon = "notification-message-im"
}
);
ws.OnMessage += (sender, e) => {
var fmt = "[WebSocket Message] {0}";
var body = !e.IsPing ? e.Data : "A ping was received.";

Console.WriteLine (fmt, body);
};

ws.OnError += (sender, e) => {
var fmt = "[WebSocket Error] {0}";

Console.WriteLine (fmt, e.Message);
};

ws.OnClose += (sender, e) => {
var fmt = "[WebSocket Close ({0})] {1}";

Console.WriteLine (fmt, e.Code, e.Reason);
};
#if DEBUG
// To change the logging level.
ws.Log.Level = LogLevel.Trace;
Expand All @@ -77,13 +64,12 @@ public static void Main (string[] args)
/*
ws.SslConfiguration.ServerCertificateValidationCallback =
(sender, certificate, chain, sslPolicyErrors) => {
ws.Log.Debug (
String.Format (
"Certificate:\n- Issuer: {0}\n- Subject: {1}",
certificate.Issuer,
certificate.Subject
)
);
var fmt = "Certificate:\n- Issuer: {0}\n- Subject: {1}";
var msg = String.Format (
fmt, certificate.Issuer, certificate.Subject
);

ws.Log.Debug (msg);

return true; // If the server certificate is valid.
};
Expand Down Expand Up @@ -112,10 +98,13 @@ public static void Main (string[] args)
//ws.ConnectAsync ();

Console.WriteLine ("\nType 'exit' to exit.\n");

while (true) {
Thread.Sleep (1000);
Console.Write ("> ");

var msg = Console.ReadLine ();

if (msg == "exit")
break;

Expand Down
26 changes: 0 additions & 26 deletions Example1/AssemblyInfo.cs

This file was deleted.

Loading