Skip to content

Commit

Permalink
fix websocket-server example. (import namespace, and create insta…
Browse files Browse the repository at this point in the history
…nce object)
  • Loading branch information
alec1o authored Dec 16, 2023
1 parent 0c877bd commit b3135f3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,11 @@ client.Open(new Uri("ws://localhost:3000/"));
<summary><sub><strong>Websocket Server</strong></sub></summary>

```csharp
using System;
using Netly;

var server = new HttpServer();

server.OnOpen(() =>
{
// server started.
Expand Down Expand Up @@ -605,4 +610,4 @@ server.Open(new Uri("http://localhost:8080"));
</details>

</ul>
<br>
<br>

0 comments on commit b3135f3

Please sign in to comment.