emitter-io / javascript Goto Github PK
View Code? Open in Web Editor NEWNodejs MQTT client for emitter.io.
Nodejs MQTT client for emitter.io.
@kelindar can u gave me an example creating key using keygen for specific channel and how can i retrieve the value.....
Is it possible to implement async versions of keygen, presence (status = true, changes = false) and me functions?
For example:
var response = await keygenAsync({ key: key_, channel: channel_, ttl: 60 });
console.log(response.key);
I can implement it myself but since there is global event handler for all three requests, I have to find a way to match the request I send with the response I get.
Do emitter requests have an id which I can use for this purpose?
I've been struggling trying to get this to work in React. Does anyone have any guidance for making that work? I've tried manually importing the emitter.min.js in the index.html but I just get more errors I think because it is missing some dependencies.
If i restart the broker, the client does not auto-reconnect.
But npm doc, connect() says it automatically reconnects.
Is there an HTTPS CDN for the Javascript library?
Hi,
I want to add some async functions to the library.
What is the proper way of modifying this library and rebuild it?
Should I modify emitter.ts in the lib directory?
Hi,
I use emitter.io in an Angular and in a dotnetcore application. Both application now throw an exception if I try to connect => the last successfull connect was 2019-05-10. I updated the Angular version to 1.38.0 but the problem is still same. I didn´t modified the sources in the last 2 weeks.
The Angular application returns
stream.js:43 WebSocket connection to 'ws://api.emitter.io:8080/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
and the dotnetcore throws
ExtendedSocketException: Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte 35.193.233.222:8080 (No connection could be established because the target computer refused the connection.)
2019-05-16 17:22:24,607 [10] FATAL TheHaulierApi.Services.Emitter_IO.EmitterIOService - EmitterIOService(..), Exception: Exception connecting to the broker
It is not a firewall problem, the connect failed in local and the deployed (Azure) versions.
Any idea, hint?
Regards
Juergen
Although there were updates in the repository
I still see that the released packages uses old type definitions
/**
* Hooks an event to the client.
*/
on(event: EmitterEvents | string, callback: (args?: any) => void): Emitter;
/**
* Unhooks an event from the client.
*/
off(event: EmitterEvents | string, callback: (args?: any) => void): Emitter;
Can you release the new version of the package?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.