Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Conversation

@Enellor
Copy link

@Enellor Enellor commented May 5, 2022

Problem: no entries in websockets_statistics_entries table.

How to reproduce:

  1. set env APP_URL to any hostname (e.g. "localhost") to make dns resolver work.
  2. set config websockets.statistics.perform_dns_lookup to false to enable dns resolver from this package.

Caused by incorrect return type from BeyondCode\LaravelWebSockets\Statistics\DnsResolver, resolve() must return string, resolveAll() - array.

Possible workaround - set config websockets.statistics.perform_dns_lookup to true, in that case BeyondCode\LaravelWebSockets\Statistics\DnsResolver will not replace default dns resolver.

Fix - change return type (which is made in this commit).
Required return types described in React\Dns\Resolver\ResolverInterface interface.

@mpociot mpociot closed this Feb 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants