Merge branch 'subs' into 'develop'

relay: close sub when socket is closed

See merge request soapbox-pub/ditto!20
This commit is contained in:
Alex Gleason
2023-08-24 23:45:08 +00:00

View File

@@ -34,6 +34,10 @@ function connectStream(socket: WebSocket) {
}
};
socket.onclose = () => {
Sub.close(socket);
};
/** Handle client message. */
function handleMsg(msg: ClientMsg) {
switch (msg[0]) {