mirror of
https://github.com/aljazceru/ditto.git
synced 2025-12-31 20:24:24 +01:00
Streaming: refactor, add unsubscribeAll method
This commit is contained in:
@@ -40,7 +40,7 @@ const streamingController: AppController = (c) => {
|
||||
|
||||
socket.addEventListener('close', () => {
|
||||
console.log('websocket: connection closed');
|
||||
ws.unsubscribe(conn, { name: stream! });
|
||||
ws.unsubscribeAll(socket);
|
||||
});
|
||||
|
||||
return response;
|
||||
|
||||
Reference in New Issue
Block a user