MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / unsubscribe

Method unsubscribe

java/src/org/openqa/selenium/bidi/BiDi.java:178–188  ·  view source on GitHub ↗
(
      Map<Event<?>, Map<String, Consumer<?>>> detached, Map<String, Object> params)

Source from the content-addressed store, hash-verified

176 }
177
178 private void unsubscribe(
179 Map<Event<?>, Map<String, Consumer<?>>> detached, Map<String, Object> params) {
180 try {
181 send(new Command<>("session.unsubscribe", params));
182 } catch (RuntimeException e) {
183 // The remote end still has the subscription, so keep delivering its events and let the
184 // caller retry
185 connection.restoreListeners(detached);
186 throw e;
187 }
188 }
189
190 public void clearListeners() {
191 whileHoldingSubscriptionLock(() -> {

Callers 2

clearListenerMethod · 0.95
removeListenerMethod · 0.95

Calls 2

sendMethod · 0.95
restoreListenersMethod · 0.80

Tested by

no test coverage detected