Skip to content

Commit

Permalink
Merge pull request #272 from boxdot/ws-is-closed
Browse files Browse the repository at this point in the history
Expose SignalWebSocket::is_closed
  • Loading branch information
rubdos authored Dec 19, 2023
2 parents 9af1f42 + 4773cf2 commit 0a7987e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libsignal-service/src/websocket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,10 @@ impl SignalWebSocket {
)
}

pub fn is_closed(&self) -> bool {
self.request_sink.is_closed()
}

pub(crate) fn take_request_stream(
&mut self,
) -> Option<SignalRequestStream> {
Expand Down

0 comments on commit 0a7987e

Please sign in to comment.