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 ---