question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Closing socket connection

See original GitHub issue

I think the readme is misleading, because the code below only unsubscribes but does not close the socket connection. messagesSubscription.unsubscribe()

hence, how can I close the socket connection ?

(I use Angular)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:17 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
insidewhycommented, Jun 30, 2017

That should be impossible, I suspect you’ve made a mistake elsewhere.

1reaction
insidewhycommented, Jun 30, 2017

At least your mistake demonstrated how the share() operator works to you, it’s pretty cool no? Rxjs is great!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to completely destroy a socket connection in C
To terminate the accept() ed connection close the accepted socket (what you call connected) by optionally first using shutdown() followed by ...
Read more >
Closing a Socket (The GNU C Library)
When you have finished using a socket, you can simply close its file descriptor with close ; see Opening and Closing Files. If...
Read more >
Socket.Close Method (System.Net.Sockets)
The Close method closes the remote host connection and releases all managed and unmanaged resources associated with the Socket. Upon closing, the Connected...
Read more >
WebSocket.close() - Web APIs - MDN Web Docs
The WebSocket.close() method closes the WebSocket connection or connection attempt, if any. If the connection is already CLOSED ...
Read more >
Socket Programming HOWTO — Python 3.6.3 documentation
Most socket libraries, however, are so used to programmers neglecting to use this piece of etiquette that normally a close is the same...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found