@metamask/snaps-sdk
Version:
A library containing the core functionality for building MetaMask Snaps
1 lines • 646 B
Source Map (JSON)
{"version":3,"file":"get-web-sockets.mjs","sourceRoot":"","sources":["../../../src/types/methods/get-web-sockets.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * This method does not accept any parameters.\n */\nexport type GetWebSocketsParams = never;\n\n/**\n * An array of connected WebSockets for the Snap.\n */\nexport type GetWebSocketsResult = {\n /**\n * The unique identifier of the WebSocket connection.\n */\n id: string;\n\n /**\n * The URL of the WebSocket connection.\n */\n url: string;\n\n /**\n * An array of subprotocols used in the WebSocket connection (if any).\n */\n protocols: string[];\n}[];\n"]}