@metamask/snaps-sdk
Version:
A library containing the core functionality for building MetaMask Snaps
1 lines • 678 B
Source Map (JSON)
{"version":3,"file":"send-web-socket-message.mjs","sourceRoot":"","sources":["../../../src/types/methods/send-web-socket-message.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * An object describing the WebSocket message to send.\n */\nexport type SendWebSocketMessageParams = {\n /**\n * The ID of the WebSocket connection to send a message to.\n */\n id: string;\n\n /**\n * The message to send. This can be either a string or an array of numbers\n * representing binary data.\n */\n message: string | number[];\n};\n\n/**\n * This method does not return any data, so the result is always `null`.\n */\nexport type SendWebSocketMessageResult = null;\n"]}