tedious icon indicating copy to clipboard operation
tedious copied to clipboard

CONNECTION.CLOSE()

Open sajidsheik opened this issue 3 years ago • 1 comments

what is the proper way to close connection connection.close(); when the reload the api again the connection.connect() will throw an exception saying request can be made only in logged in state not in ConnectionError: .connect can not be called on a Connection in Final state.

sajidsheik avatar Jan 31 '21 15:01 sajidsheik

Do you have a repro case we can see? This might be due to connection.close() happening in an async manner. You can try to capture the connection.on('end') event before proceding to open a new connection

IanChokS avatar Feb 01 '21 16:02 IanChokS