Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
paulpdaniels committed Jan 29, 2015
1 parent 5373192 commit a3544e1
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,19 @@ Currently only supports WAMP v1 but who knows v2 might be in the cards

Only requires JSON.net. Ideally would have no dependencies but lets face it the built in JSON libraries are not really up to snuff.



#### Quickstart

Get It: [Nuget Package](https://www.nuget.org/packages/MiniWamp/)


Start by using the WampClient to start up a connection
```csharp

//At the top
using DapperWare;

//Will use the default Transport which is a MessageWebSocket
Task<WampSession> session = WampClient.Connect("ws://localhost:3000");
Expand All @@ -34,10 +42,10 @@ mySubject.Message += mySubject_MessageHandler;

//There are two ways to unsubscribe
//Directly through the subject
//Unsubscribes only this subject
mySubject.Unsubscribe();

//Through the session
//Unsubscribes all subjects
session.Unsubscribe("mytopic/something");

//Publication
Expand Down

0 comments on commit a3544e1

Please sign in to comment.