A function to find the default websocket string given an RPC endpoint. https://github.com/standardconnect/xdir/blob/main/src/utils/id.ts#L51
import xdir from 'xdir';const valid = xdir.getRpcWithWssString('https://xrplcluster.com') // 'wss://xrplcluster.com'
Generated using TypeDoc
A function to find the default websocket string given an RPC endpoint. https://github.com/standardconnect/xdir/blob/main/src/utils/id.ts#L51
Example