This is a small example of socket programming that is able to connect multiple clients to a server using python 3 sockets. It can send messages from clients to server, and from server to clients. This ...
I was using socket.io wrapped by FastAPI (mounting sio_app on the certain path of FastAPI). When the client sends a zero-length binary data, like Buffer.from([]), the connection will be closed ...