A function to find the network name given a websocket string. https://github.com/standardconnect/xdir/blob/main/src/utils/id.ts#L51
import xdir from 'xdir';const name = xdir.getNetworkNameByWss('wss://xrplcluster.com') // 'mainnet'
Generated using TypeDoc
A function to find the network name given a websocket string. https://github.com/standardconnect/xdir/blob/main/src/utils/id.ts#L51
Example