Skip to main content
  • Snap

snap_closeWebSocket

Description

Closes a WebSocket connection that was previously opened with snap_openWebSocket.

Parameters

object
required

An object containing the parameters for the snap_closeWebSocket method.

id

string
required

The ID of the WebSocket connection to close.

Returns

null

This method does not return any data, so the result is always null.

Example

{
"initialPermissions": {
"endowment:network-access": {}
}
}
On this page