Marfusios / websocket-client

🔧 .NET/C# websocket client library
MIT License
685 stars 126 forks source link

Help with Socket.IO websocket connection #4

Closed simplextech closed 5 years ago

simplextech commented 5 years ago

For the life of me and others I can't get a functioning websocket connection to this service. I'm hoping your client may work with some assistance?

https://ambientweather.docs.apiary.io/#reference/ambient-realtime-api

Marfusios commented 5 years ago

Hello,

you need to get url address like wss://xxx in order to use this library. But in your case, there is only https://api.ambientweather.net/?api=1&applicationKey=.... and it is based on framework socket.io, I've no idea how it works internally and where to get correct websocket url.

Try luck with this library, seems relevant: https://github.com/IBM/socket-io

Marfusios commented 5 years ago

Here is an interesting code: https://github.com/IBM/socket-io/blob/master/ibm.socket-io.client/Impl/SocketMediator.cs#L221 There is some wss url resolving via HTTP call, weird to me, but perhaps meaningful.

simplextech commented 5 years ago

This is the problem I and others are having. I've even looked into finding a commercial library offering to find something and there is no current/maintained solution I can find for this that is functional for production use.

Marfusios commented 5 years ago

If you are willing to pay, contact me on my email. We can discuss some custom implementation for your issue.