streaming: don't forget to close the subscription when the socket closes
This commit is contained in:
parent
c13b7f4af7
commit
9cd1ca1861
|
@ -61,6 +61,7 @@ const streamingController: AppController = (c) => {
|
|||
|
||||
socket.onclose = () => {
|
||||
ws.unsubscribeAll(socket);
|
||||
Sub.close(socket);
|
||||
};
|
||||
|
||||
return response;
|
||||
|
|
Loading…
Reference in New Issue