Skip to content
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

Example code not complete #5

Open
basickarl opened this issue Dec 10, 2019 · 1 comment
Open

Example code not complete #5

basickarl opened this issue Dec 10, 2019 · 1 comment

Comments

@basickarl
Copy link

servers.listen(function(){
^

ReferenceError: servers is not defined
    at Object.<anonymous> (/home/karl/dev/javascript/sandbox.js:16:1)

Example code is not complete!

@esbenvb
Copy link

esbenvb commented Feb 15, 2021

The start of the code should be something like

const mqttServer = require('mqtt-server');
 
const servers = mqttServer({
// .....

That will at least run - but I cant, make it forward any messages though...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants