Skip to content

Commit

Permalink
feat(server): add SubscriptionSink::connection_id (#1175)
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasad1 authored Aug 10, 2023
1 parent 1045057 commit 098766d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/src/server/subscription.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,11 @@ impl SubscriptionSink {
self.method
}

/// Get the connection ID.
pub fn connection_id(&self) -> ConnectionId {
self.uniq_sub.conn_id
}

/// Send out a response on the subscription and wait until there is capacity.
///
///
Expand Down

0 comments on commit 098766d

Please sign in to comment.