0.2.0 • Published 8 months ago

expo-gbping v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

expo-gbping

Expo module wrapper for GBPing Swift Library

TL;DR: This module allows you to ping hosts and get accurate round-trip timing results.

šŸŽ iOS only.

Installation

npx expo install expo-gbping

Configure for iOS

Run npx pod-install after installing the npm package.

API

ping(host: string, timeout?: number): Promise<number>

Pings the specified host and returns the round-trip time in milliseconds. Parameters:

  • host (string) - The host to ping.
  • timeout (number) - The maximum time to wait for a response in milliseconds (optional, default is 1000).

Usage

import GBPing from 'expo-gbping';

const result: number = await GBPing.ping('https://google.com', 1000);
0.2.0

8 months ago

0.1.1

8 months ago

0.1.0

8 months ago