Replies: 1 comment 5 replies
-
Hi @KRookoo1 are you using the library on a machine with no network connection? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello.
When in computer not have ane real active network adapter or a computer is offline (any network adapter not has connection to networt) WatsonWebsocket has problem.
In function Start() in calss WatsonWsClient first lin is:
if (!NetworkInterface.GetIsNetworkAvailable()) throw new InvalidOperationException("No network is available.");
NetworkInterface.GetIsNetworkAvailable() indicates whether any network connection is available and return true if a network connection is available.
If I use WatsonWebClient to localhost connection ( example WatsonWsClient("localhost",9001, false)) I havn't need internet connection or any network available.
Function NetworkInterface.GetAllNetworkInterfaces() return one network "LocalLoop" and it is work.
Please analize this problem and If client try start with localhost maybe you not need check networkAvailable?
Beta Was this translation helpful? Give feedback.
All reactions