Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.NET API Example #3

Open
simplextech opened this issue Aug 10, 2018 · 5 comments
Open

.NET API Example #3

simplextech opened this issue Aug 10, 2018 · 5 comments
Labels
help wanted Extra attention is needed

Comments

@simplextech
Copy link

Can you provide information for a .NET usage?

@owise1 owise1 added the help wanted Extra attention is needed label Aug 13, 2018
@owise1
Copy link
Owner

owise1 commented Aug 13, 2018

Unfortunately I'm not familiar with .NET. I'd think you could install nodejs and then use this library?

@simplextech
Copy link
Author

simplextech commented Aug 13, 2018 via email

@simplextech
Copy link
Author

Here's what we see when doing the WebSocket connection from VB.Net

GET /?api=1&applicationKey=
HTTP/1.1
Connection: Upgrade
Host: api.ambientweather.net
Upgrade: websocket
Sec-WebSocket-Key: 3WJvmOgYlSx3y/Bh7wEBoA==
Sec-WebSocket-Version: 13

The Sec-WebSocket-Key is random and changes each time..
I see nothing wrong with the request, and the expectation is to get a 101 response back. However, we get a 503 response..

@owise1
Copy link
Owner

owise1 commented Aug 13, 2018

Hmm. I'm not sure. The realtime API uses socket.io, are you able to use a library like this? https://github.com/Quobject/SocketIoClientDotNet That might be easier that trying to do the websocket handshake manually

@simplextech
Copy link
Author

This is being done with another library (commercial) and getting this error and strange behavior. I have not tried the mentioned library but I also did try WebSocket4Net and had issues as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants