Comments (18)
Thank you for the report, I was able to reproduce this bug on my side and can confirm it is a bug.
I will look into it and will post here any updates I'll have.
from arduinowebsockets.
@johneakin Great! I'm glad it's working now.
@bastienvans Did it work for you aswell?
from arduinowebsockets.
Many thanks
Seems to be working great.
from arduinowebsockets.
I am also looking this to work for
wss://ws-feed.gdax.com
from arduinowebsockets.
I am also looking this to work for
wss://ws-feed.gdax.com
Their API URL has changed to ws-feed.pro.coinbase.com.
from arduinowebsockets.
Thank you for the report, I was able to reproduce this bug on my side and can confirm it is a bug.
I will look into it and will post here any updates I'll have.
Thanks!
I got it to work using another code posted on github. I ended up using WiFiClientSecureBearSSL.
from arduinowebsockets.
Is that now working with a socket or just an HTTPS request?
Can you include the source code for connecting to wss://ws-feed.pro.coinbase.com
from arduinowebsockets.
Thank you for the report guys. I've fount at least one bug that had to do with the parsing of the server's response. For some reason, wss://ws-feed.pro.coinbase.com
returns one header which is a-bit diffrent than standard.
The problem is still not fully solved, as I am able to make a connection with wss://ws-feed.pro.coinbase.com
without it closing the connection immidiatly. Yet, the connection does not seem to be active (I was unable to receive any response from the server).
Communicating with wss://api.bitfinex.com/ws/2
works fine after the patch. By the end of the day there will be a patch live, hopefully it will solve both issues.
from arduinowebsockets.
Hi guys @bastienvans @johneakin
I believe the issue is now solved complely. Patch 0.4.1 is live!
It is available now via the release page and will be soon available for update via the Arduino IDE.
Thank you for reporting the issue and providing usefull information and logs. Please verify it is working for you properly.
from arduinowebsockets.
Thanks
I'll give it a try and report back
When you say completely solved, Do you mean also working for: wss://ws-feed.pro.coinbase.com
?
from arduinowebsockets.
wss://ws-feed.pro.coinbase.com is connecting and staying connected
but onMessageCallback doesn't appear to be getting called with new data which should be coming in regularly
from arduinowebsockets.
@johneakin Try adding a dummy send method and see if the you get the server's response. For me, adding send for "hello" in setup
will return the message {"type":"error","message":"Malformed JSON","original":"hello"}
immidiatly.
What kind of data you expect to get "regulary" from the socket? I've tried the connection on PC (with some downloaded websockets client) and the connection seems to disconnect after few seconds of inactivity.
from arduinowebsockets.
@johneakin Try adding a dummy send method and see if the you get the server's response. For me, adding send for "hello" in
setup
will return the message{"type":"error","message":"Malformed JSON","original":"hello"}
immidiatly.
What kind of data you expect to get "regulary" from the socket? I've tried the connection on PC (with some downloaded websockets client) and the connection seems to disconnect after few seconds of inactivity.
Yeah, you have to keep pinging it to stay connected.
from arduinowebsockets.
My fault, I wasn't sending the subscribe json
client.connect("wss://ws-feed.pro.coinbase.com");
client.send("{"type": "subscribe","product_ids": ["BTC-USD"],"channels": ["ticker"]}");
After I send that I get the frequent price updates in the: onMessageCallback
from arduinowebsockets.
Fantastic! Thank you guys for bringing up the issue.
Gil.
from arduinowebsockets.
Hello,
I see the same issue while working with wss://stream.toggl.com/ws link.
This link receives authentication token then decides to continue or disconnect. But in every attempt, it disconnects immediately before sending token.
The patch also didn't worked for me. Any suggestions?
from arduinowebsockets.
Hello,
I see the same issue while working with wss://stream.toggl.com/ws link.
This link receives authentication token then decides to continue or disconnect. But in every attempt, it disconnects immediately before sending token.
The patch also didn't worked for me. Any suggestions?
Hi,
Are you sure it's the same issue? Open a new issue and I will look into it.
Gil
from arduinowebsockets.
Hello,
I see the same issue while working with wss://stream.toggl.com/ws link.
This link receives authentication token then decides to continue or disconnect. But in every attempt, it disconnects immediately before sending token.
The patch also didn't worked for me. Any suggestions?Hi,
Are you sure it's the same issue? Open a new issue and I will look into it.
Gil
Thanks, I've opened Issue 67
from arduinowebsockets.
Related Issues (20)
- esp32 to wss python server
- ESP32 Websocket Client doesn't connect to Node.js Websocket server HOT 3
- poll() disconnects client HOT 7
- How to get a reference of the web socket client that dispatched the msg callback
- Hieromon/AutoConnect & WebSockets Client on ESP8266 - Can't Establish wss
- Secured-ESP8266-Client can't seem to receive any messages while connection is open HOT 1
- Compilation error: 'WebsocketsClient' does not name a type ?? HOT 3
- Getting a error from the TCPServer using the Arduino GIGA R1 WIFI on the ESP-32Client code. HOT 10
- ESP32-CAM WebSocket Server: Failure to Stream Camera Feed after Page Refresh or Multiple Connections
- WSS Connection error
- [ 5236][E][WiFiClient.cpp:313] setSocketOption(): fail on -1, errno: 9, "Bad file number" HOT 2
- Reconnecting after lost connection HOT 2
- Disconnecting almost inmediately
- Random disconnects, fails on binary ping including 0x00 HOT 1
- Issue with WSS and ESP 32 HOT 4
- Esp32 WebSocket Client won't work with WebSocket Node.js server. HOT 3
- Client-Message-Buffer
- ESP32 Server disconnected when receiving messages HOT 1
- Compilation errors with arduino_esp32 version 3.0.0 HOT 6
- wrong username
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduinowebsockets.