From 8766a15358ca39dd3932d49d776591cd23e63619 Mon Sep 17 00:00:00 2001 From: Mike Olsen Date: Wed, 24 Aug 2016 23:59:30 -0700 Subject: [PATCH] add RestartAfterListenError to readme --- readme.markdown | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/readme.markdown b/readme.markdown index c9cacc6d..4c6ba2cc 100644 --- a/readme.markdown +++ b/readme.markdown @@ -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 ---