streaming: don't forget to close the subscription when the socket closes

This commit is contained in:
Alex Gleason 2023-08-26 15:57:51 -05:00
parent c13b7f4af7
commit 9cd1ca1861
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -61,6 +61,7 @@ const streamingController: AppController = (c) => {
socket.onclose = () => {
ws.unsubscribeAll(socket);
Sub.close(socket);
};
return response;