Files
Fluxup_PAP/node_modules/@expo/devtools/build/getConnectionInfo.native.js
2026-03-10 16:18:05 +00:00

16 lines
567 B
JavaScript

/**
* Get the dev server address.
*/
import { PROTOCOL_VERSION } from './ProtocolVersion';
export function getConnectionInfo() {
const getDevServer = require('react-native/Libraries/Core/Devtools/getDevServer').default;
const devServerUrl = getDevServer().url;
const devServer = devServerUrl.replace(/^https?:\/\//, '').replace(/\/?$/, '');
return {
protocolVersion: PROTOCOL_VERSION,
sender: 'app',
devServer,
useWss: devServerUrl.startsWith('https://'),
};
}
//# sourceMappingURL=getConnectionInfo.native.js.map