Skip to content
Browse files

Updated readme example

  • Loading branch information...
1 parent 00571a8 commit 1f3fcccdd6e715f8f905ba07014095e7e2d0862a @ajacksified ajacksified committed
Showing with 10 additions and 6 deletions.
  1. +10 −6 README.md
View
16 README.md
@@ -1,4 +1,4 @@
-Alchemy Websockets
+Alchemy Websockets
=============
**Version 2.0.0**
@@ -32,15 +32,19 @@ An example application can be seen on [alchemy-websockets-example](https://githu
Example:
```csharp
+//...refs
+using Alchemy;
+using Alchemy.Classes;
+
static void Main(string[] args)
{
var aServer = new WSServer(8100, IPAddress.Any)
{
- DefaultOnReceive = new OnEventDelegate(OnReceive),
- DefaultOnSend = new OnEventDelegate(OnSend),
- DefaultOnConnect = new OnEventDelegate(OnConnect),
- DefaultOnConnected = new OnEventDelegate(OnConnected),
- DefaultOnDisconnect = new OnEventDelegate(OnDisconnect),
+ DefaultOnReceive = OnReceive,
+ DefaultOnSend = OnSend,
+ DefaultOnConnect = OnConnect,
+ DefaultOnConnected = OnConnected,
+ DefaultOnDisconnect = OnDisconnect,
TimeOut = new TimeSpan(0, 5, 0)
};

0 comments on commit 1f3fccc

Please sign in to comment.
Something went wrong with that request. Please try again.