MCPcopy
hub / github.com/robtaussig/react-use-websocket / removeSubscriber

Function removeSubscriber

src/lib/manage-subscribers.ts:26–28  ·  view source on GitHub ↗
(url: string, subscriber: Subscriber)

Source from the content-addressed store, hash-verified

24};
25
26export const removeSubscriber = (url: string, subscriber: Subscriber): void => {
27 subscribers[url].delete(subscriber);
28};
29
30export const resetSubscribers = (url?: string): void => {
31 if (url && subscribers.hasOwnProperty(url)) {

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…