Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support custom events #13

Merged
merged 6 commits into from
Mar 29, 2022
Merged

feat: support custom events #13

merged 6 commits into from
Mar 29, 2022

Conversation

patrykcieszkowski
Copy link
Contributor

@patrykcieszkowski patrykcieszkowski commented Mar 24, 2022

related to jsdelivr/globalping#49

Adds:

  • api:error event - logs the reason for the disconnect
  • api:connect:location - logs probe's geo fetch result
[2022-03-24 12:19:12] [ERROR] [766473] [general] disconnected due to error: IP Limit
[2022-03-24 12:19:12] [INFO] [766473] [general] attempted to connect from (boblingen, DE, EU) (lat: 48.6821 long: 9.0117)
[2022-03-24 12:19:12] [INFO] [766473] [general] other connection: (naarden, NL, EU) (lat: 52.29 long: 5.15)
[2022-03-24 12:19:12] [INFO] [766479] [general] connected from (naarden, NL, EU) (lat: 52.29 long: 5.15)

src/index.ts Outdated Show resolved Hide resolved
src/types.d.ts Show resolved Hide resolved
@zarianec zarianec force-pushed the master branch 3 times, most recently from 72a5d71 to 8da0b10 Compare March 25, 2022 13:55
@zarianec zarianec merged commit b766a85 into master Mar 29, 2022
@zarianec zarianec deleted the custom-messaging branch March 29, 2022 18:17
@github-actions
Copy link

🎉 This PR is included in version 0.2.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants