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

websocket server did not response to the client #18

Closed
boonpin1975 opened this issue Oct 1, 2016 · 4 comments
Closed

websocket server did not response to the client #18

boonpin1975 opened this issue Oct 1, 2016 · 4 comments

Comments

@boonpin1975
Copy link

hi ,
I am trying to modifying the websocket test scripts ,
var WebSocket = require('ws');
var ws = new WebSocket('ws://root:root@127.0.0.1:8898/web2');
ws.on('open', function open() {
ws.send('hello');

console.log('open');
});

ws.on('message', function (data) {
console.log(data);
process.exit(1);
ws.close();
});

but in the mongo client , I could not find the data was injected to the lan server ... can you please clarifying if the websocket is working ?
thanks

@phodal
Copy link
Owner

phodal commented Nov 23, 2016

Hi @boonpin1975,

I'm so sorry to see this issue,is this issue still in here?

@boonpin1975
Copy link
Author

hi @phodal
this issue still happen ... mongo did not catch the data feeded by the client

@phodal
Copy link
Owner

phodal commented Nov 24, 2016

Hi @boonpin1975 ,

Actually, this project was almost in deprecated stage, because it's user-less. And if you still use this, I will check it later.

At the beginning, the websocket part have a bad design, it need more time to fix it.

@boonpin1975
Copy link
Author

hi @phodal
it should be ok , I bought your IOT book and want to try out the IOT middleware

@phodal phodal closed this as completed Dec 13, 2016
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