question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support running in browser

See original GitHub issue

When I try to get data by your lib, I geting warnings like this:

image

And catch this error: image

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:open
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
bmancini55commented, Jul 22, 2018

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

0reactions
sarmad4444commented, Sep 9, 2021

Any update on this? Would love to use this package in my upcoming app.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found