Gottox / socket.io-java-client

Socket.IO Client Implementation in Java
MIT License
950 stars 387 forks source link

the server and client all work but 'on' and 'emit' not work, why? #91

Open xiaofeilee opened 10 years ago

xiaofeilee commented 10 years ago

server: socket.emit("test", "123456"); client: var socket = io.connect(SocketJS.connectUrl); //socket.on('connect', function(){ //alert('连接socket成功'); //});
socket.on('test', function(data){
alert('test ' + data); //not work why? });