Skip to content

Commit 098766d

Browse files
authored
feat(server): add SubscriptionSink::connection_id (#1175)
1 parent 1045057 commit 098766d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/src/server/subscription.rs

+5
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,11 @@ impl SubscriptionSink {
322322
self.method
323323
}
324324

325+
/// Get the connection ID.
326+
pub fn connection_id(&self) -> ConnectionId {
327+
self.uniq_sub.conn_id
328+
}
329+
325330
/// Send out a response on the subscription and wait until there is capacity.
326331
///
327332
///

0 commit comments

Comments
 (0)