MCPcopy Create free account
hub / github.com/caesarHQ/textSQL / getConnectionSpeed

Function getConnectionSpeed

client/censusGPT/src/vitals.js:3–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1const vitalsUrl = 'https://vitals.vercel-analytics.com/v1/vitals'
2
3function getConnectionSpeed() {
4 return 'connection' in navigator &&
5 navigator['connection'] &&
6 'effectiveType' in navigator['connection']
7 ? navigator['connection']['effectiveType']
8 : ''
9}
10
11export function sendToVercelAnalytics(metric) {
12 const analyticsId = process.env.REACT_APP_VERCEL_ANALYTICS_ID

Callers 1

sendToVercelAnalyticsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected