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

Method addWebSocketHandler

packages/types/lib/server.ts:29–29  ·  view source on GitHub ↗

* Adds websocket handler to an code AppiumServer. * @param handlerPathname - Web socket endpoint path starting with a single slash character. It is recommended to always prepend `/ws` to all web socket pathnames. * @param handlerServer - WebSocket server instance. See https://github.com

(this: AppiumServer, handlerPathname: string, handlerServer: WSServer)

Source from the content-addressed store, hash-verified

27 * @param handlerServer - WebSocket server instance. See https://github.com/websockets/ws/pull/885 for more details on how to configure the handler properly.
28 */
29 addWebSocketHandler(this: AppiumServer, handlerPathname: string, handlerServer: WSServer): Promise<void>;
30 /**
31 * Removes existing WebSocket handler from the server instance.
32 *

Callers 4

createAppiumServerFunction · 0.80
prepareWebSocketsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected