Connect to the wallet - this will trigger either the extension, web or mobile connection. The returned promise will resolve when the user accepted or rejected the connection.
const message = 'To verify your wallet on https://example.com, with this message';
const messageBytes = new TextEncoder().encode(message);
const signature: Uint8Array = await wallet.signMessage(messageBytes, 'utf8');