Skip to content
This repository has been archived by the owner on Oct 19, 2019. It is now read-only.

Question about Send method #55

Open
AachoLoya opened this issue Oct 13, 2019 · 0 comments
Open

Question about Send method #55

AachoLoya opened this issue Oct 13, 2019 · 0 comments

Comments

@AachoLoya
Copy link

I'm writing a websocket server using multiple threads, so at anytime two threads could be sending a message to the same socket/websocketsession, but can't figure out whether I should use a lock around Send method OR are these methods thread safe?

Also, these methods don't have any return value, so what happens if the socket is closed by remote side while sending data or Send is called After a socket is closed but reference is still valid? would it throw an exception?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant