mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-06 15:14:23 +01:00
streaming: don't forget to close the subscription when the socket closes
This commit is contained in:
@@ -61,6 +61,7 @@ const streamingController: AppController = (c) => {
|
||||
|
||||
socket.onclose = () => {
|
||||
ws.unsubscribeAll(socket);
|
||||
Sub.close(socket);
|
||||
};
|
||||
|
||||
return response;
|
||||
|
||||
Reference in New Issue
Block a user