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
1 changed files with 1 additions and 0 deletions

View File

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