Support running in browser
See original GitHub issueWhen I try to get data by your lib, I geting warnings like this:
And catch this error:
This is how I try to fetch data:
const ccxws = require("ccxws");
export default function wsUpdate() {
const binance = new ccxws.Binance();
const market = {
id: "USDT-BTC", // remote_id used by the exchange
base: "BTC", // standardized base symbol for Cardano
quote: "USDT" // standardized quote symbol for Bitcoin
};
binance.subscribeTrades(market);
binance.on("trades", trade => console.log(trade));
}
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Can I use... Support tables for HTML5, CSS3, etc
"Can I use" provides up-to-date browser support tables for support of front-end web technologies on desktop and mobile web browsers.
Read more >supports - CSS: Cascading Style Sheets - MDN Web Docs
The @supports CSS at-rule lets you specify CSS declarations that depend on a browser's support for CSS features. Using this at-rule is commonly ......
Read more >How to enable JavaScript in your browser and why
Instructions on how to enable (activate) JavaScript in web browser and why. ... section and select "Allow all sites to run JavaScript (recommended)"....
Read more >Dealing with Cross Browser Compatibility - YouTube
Cross browser compatibility can be a pain in the ass, ... between browsers user agent styles - how to check for browser support...
Read more >Add support for running in a browser · Issue #3935 - GitHub
I was wondering if anyone around here can help out figure out if it's even possible to run the newest Stylelint on the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Gotcha, ccxws is currently untested for browsers.
I don’t think it will be that difficult to get working, though there may some minor issues for certain exchanges depending on the underlying socket mechanism in use.
Thanks you for example app, that’s a big help
Any update on this? Would love to use this package in my upcoming app.