pythonasyncioeventletgeventlong-pollinglow-latencysocket-iosocketiosocketio-serverweb-serverwebsocket
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
293 B
19 lines
293 B
'use strict';
|
|
|
|
(function() {
|
|
|
|
const socket = io();
|
|
|
|
socket.on('connect', () => {
|
|
console.log(`connect ${socket.id}`);
|
|
});
|
|
|
|
socket.on('disconnect', () => {
|
|
console.log(`disconnect ${socket.id}`);
|
|
});
|
|
|
|
socket.on('hello', (a, b, c) => {
|
|
console.log(a, b, c);
|
|
});
|
|
|
|
})();
|
|
|