Skip to content

Commit

Permalink
Merge pull request #182 from artfulhacker/master
Browse files Browse the repository at this point in the history
added Restart to readme
  • Loading branch information
Mike Olsen committed Aug 25, 2016
2 parents 9f56c80 + 8766a15 commit 9b021ce
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions readme.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,20 @@ server.Start(socket =>
});
```

Auto Restart After Listen Error
---

Set `RestartAfterListenError` to `true` on the `WebSocketConnection`

```cs
var server = new WebSocketServer("ws://0.0.0.0:8181");
server.RestartAfterListenError = true;
server.Start(socket =>
{
//...use as normal
});
```

License
---

Expand Down

0 comments on commit 9b021ce

Please sign in to comment.