{"version":3,"file":"open-web-socket.mjs","sourceRoot":"","sources":["../../../src/types/methods/open-web-socket.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * The request parameters for the `snap_openWebSocket` method.\n *\n * @property url - The `wss://` URL of the WebSocket connection to open.\n * @property protocols - The optional protocols to use for the WebSocket\n * connection.\n */\nexport type OpenWebSocketParams = {\n  url: string;\n  protocols?: string[];\n};\n\n/**\n * The ID of the opened WebSocket connection, which can be used to reference the\n * connection in subsequent calls to [`snap_sendWebSocketMessage`](https://docs.metamask.io/snaps/reference/snaps-api/snap_sendwebsocketmessage)\n * and [`snap_closeWebSocket`](https://docs.metamask.io/snaps/reference/snaps-api/snap_closewebsocket).\n */\nexport type OpenWebSocketResult = string;\n"]}