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

Question about Send method #55

@AachoLoya

Description

@AachoLoya

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions