Skip to content
This repository has been archived by the owner on Oct 10, 2018. It is now read-only.

why does the generator.js sendMessage not work #63

Open
sulv opened this issue Jun 26, 2018 · 2 comments
Open

why does the generator.js sendMessage not work #63

sulv opened this issue Jun 26, 2018 · 2 comments

Comments

@sulv
Copy link

sulv commented Jun 26, 2018

code like this :

module.exports = { beforeConnect : function (client) { }, onConnect : function (client, done) { client.emit('sendMsg', { hello: 'world' }); done(); }, sendMessage : function (client, done) { client.emit('sendMsg', { hello: 'world' }); done(); } };

when i emit msg in onConnect fun it works, but in sendMessage function it does not work ? why

@hequanb
Copy link

hequanb commented Jul 11, 2018

hello, maybe you should add argument -m <message num> to define the message number each client sends.

@sulv
Copy link
Author

sulv commented Jul 20, 2018

yeap, forget to add -m, ehhhhhhhh

@sulv sulv closed this as completed Jul 20, 2018
@sulv sulv reopened this Jul 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants