MCPcopy Create free account
hub / github.com/appium/appium / addWebSocketHandler

Function addWebSocketHandler

packages/storage-plugin/test/unit/plugin.spec.ts:318–321  ·  view source on GitHub ↗
(path: string, handler: WSServer)

Source from the content-addressed store, hash-verified

316 return Object.fromEntries(Object.entries(mapping).filter(([key]) => key.includes(path)));
317 },
318 async addWebSocketHandler(path: string, handler: WSServer) {
319 server.registrations++;
320 mapping[path] = handler;
321 },
322 async removeWebSocketHandler(path: string) {
323 server.removals++;
324 mapping[path]?.close();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected