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

Function addWebSocketHandler

packages/http-server/lib/websocket.ts:8–14  ·  view source on GitHub ↗
(
  this: AppiumServer,
  handlerPathname: string,
  handlerServer: WSServer,
)

Source from the content-addressed store, hash-verified

6 * @see AppiumServerExtension.addWebSocketHandler
7 */
8export async function addWebSocketHandler(
9 this: AppiumServer,
10 handlerPathname: string,
11 handlerServer: WSServer,
12): Promise<void> {
13 this.webSocketsMapping[handlerPathname] = handlerServer;
14}
15
16/**
17 * Returns WebSocket handlers for this server, optionally filtered by pathname.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected