Comments (4)
It works perfectly with browserify or webpack, as MQTT.js works in the
browser.
As it seems you are talking about using it as is, without browsefy or
webpack. Right?
Il giorno ven 1 apr 2016 alle 23:16 Espen H [email protected] ha
scritto:
Hi,
We are developing a browser plugin for previewing websocket traffic, and
are looking into your package for parsing MQTT-messages. Your package
caught our eye; the implementation looks great, good job.I couldn't help but notice, however, that you depend on bl and some other
node.js stuff. Do you think it could be possible to support the browser as
well? If so, it would be a great help for us.Alternatively - do you know of any other parsing library for MQTT? I
looked at MQTT.js, but that is a whole client/server-thing, we just need
the parsing logic.—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#11
from mqtt-packet.
That's good to hear, I only saw references to node in the readme.
Correct, Ideally I would like to just be able to put the source file or a dist file right in the project, as there is no build system as of now. I tried to simply require the source, but that didn't really work too well.
from mqtt-packet.
You can create a standalone bundle with browserify. Have a look. This module is built for speed and throughput, and it heavily relies on Node Streams and Buffer.
I have no time to rewrite this for the browser only... you might want to fork it.
from mqtt-packet.
I did what you said - created a standalone bundle via browserify; it works great. Thanks for your help!
from mqtt-packet.
Related Issues (20)
- Current Typescript definitions are difficult to use to read userProperties
- stop validating protocol level in this package HOT 1
- can't comply with MQTT spec requirements about flag validation HOT 1
- Generate 'puback' package can't set 'qos' properties HOT 5
- Buffer is not defined HOT 1
- SUBSCRIBE packet with no payload HOT 3
- Cannot connect to some MQTT server when the connect packet sent in chunk instead of full packet at once HOT 1
- No callback on writeToStream? HOT 5
- Call `stream.destroy(err)` instead of `stream.emit('error', err)` HOT 1
- Cannot specify subscription identifier when sending a SUBSCRIBE packet
- Publish v8.0.0 to NPM
- Are there any usage examples?
- Will mqtt-packet convert date to timestamp?
- numbers.js cache excessive memory usage HOT 2
- Connect packet HOT 1
- Mqtt 5 puback is different from spec HOT 6
- Typescript HOT 4
- Block-scoped declarations (let, const, function, class) not yet supported outside strict mode HOT 3
- Regression in v6.6.0 for parsing multi-byte length header that is split across write calls HOT 5
- Buffer out of bounds when v5 connection request sent to v4 server
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 mqtt-packet.