dcloudio / dcloudio/ask

socket.io adt package issue

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
6
Forks
4
PR merge metrics
No merged PRs in 30d

Description

server
var io = require('socket.io').listen(3030,{host:'192.168.1.100',origins: ':'});
io.sockets.on('connection', function (socket) {

console.log('conn');
socket.on('toAll', function (data) {
console.log(data);

});
});

client

var socket = io.connect('http://192.168.1.100:3030');

socket.emit("toAll",{msg:"xxxx"});

</sciript>

only worked fine in hbuilder Ide, but not work in adt or clound package

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.