2016-07-15 104 views

回答

0

,你可以在滚动事件处理程序中调用socket.emit

window.addEventListener('scroll', function(event){ 
    //you may want to add some conditions first... 
    socket.emit('chat message', 'content'); 
})