A
A
antimodern2019-02-19 23:35:27
Node.js
antimodern, 2019-02-19 23:35:27

How to unsubscribe in socket.io without closing the connection?

SPA application. Vue, Socket..io, Node/Express. When the application is downloaded, a connection is made. Then on different routes there is a different subscription to different events.
How to close a subscription without terminating the shared connection? Is there a method for the client, or do I even need to do it on the server? How? Create a separate event?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
emp1re, 2019-02-20
@emp1re

Is there a method for the client, or do I even need to do it on the server?

The main logic on the server.
Yes
The first Google query suggested this -tyts

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question