-
Notifications
You must be signed in to change notification settings - Fork 23
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
Can't import jszmq into web browser #29
Comments
Does that help? |
Hi @sphaero, yes that helps, thank you very much. I think it would make sense to include those steps in the README, otherwise it's pretty hard to figure this out. |
Can you add these instructions through a PR? |
Yes, will do. |
Hi, I follow the step to use browserify to convert the Javascript (with
The error says: "WebSocket connection to 'ws://172.17.0.1:9802/' failed: " However, the same URL can work with zeromq when I have a local js server running, in a separate project without using jszmq and browserify. Do I miss some obvious steps? Is there any information I can provide to help better illustrate the problem? |
I think you'll need a better code snippet to explain the error. We can't tell what's going on from this. |
I want to try out jszmq in the browser, but am stumped at the fundamentals of getting it imported.
Server
Live Server from VS Code
Browser
Firefox for Ubuntu 101.0.1
Installation
npm install jszmq
version 0.1.2 gets installed
HTML code
main.js
expected outcome:
The module would import without any shimming or boilerplating.
The zmq object would be logged to console.
actual outcome:
the below error is thrown to the console:
Can somebody please advise if I am missing a trick here?
The text was updated successfully, but these errors were encountered: