https://btholt.github.io/complete-intro-to-realtime/socketio
https://btholt.github.io/complete-intro-to-realtime/intro-to-websockets
Socket.io:
FE:
const socket = io("http://localhost:8080");
socket.on("connect", () => {
console.log("connected");
presence.innerText = "
原创文章,作者:carmelaweatherly,如若转载,请注明出处:https://blog.ytso.com/274649.html