Portal Connect
PortalConnect is the main class for managing connections and interactions with the Portal network. It handles WebSocket communication, session management, and signing requests, providing a high-level interface for applications to integrate with the Portal infrastructure.
This class extends EventBus, enabling it to emit and listen for various events related to the connection and signing processes.
Constructors
Constructs the connector with a raw Client API Key.
Creates a new PortalConnect instance, initializing the provider and setting up event listeners.
Properties
Functions
Adds new chains to the existing list of chains in a SessionProposal's required namespaces.
Disconnects the WebSocket client.
Emits a "portal_getSessionRequest" event to the connected client.
Unregisters an event handler for a given event