android - Socket.IO receive callback value -


is possible receive value or listen event on client server without server emitting?

if server has

socket.on('get_name', function(data, callback) {  try {     var name = nameservice.getnamebyid(data.refid);     if (!name) return callback({error:true,code:801,message:'name not exist!'});     callback(name.format());   } catch (err) {      callback({error:true,code:999,message:err.message});   } } 

how can return data client? can see, doesnt have emit client cannot listen via event?

i found solution, check link: androidasync socket.io receive callback value. consists on using emitevent method.


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -