websocket_reconnect 0.0.1 copy "websocket_reconnect: ^0.0.1" to clipboard
websocket_reconnect: ^0.0.1 copied to clipboard

The "websocket_reconnect" is a convenient package for Flutter developers to automatically reconnect to a WebSocket when connection is lost. It eliminates the need for manual reconnection logic. Simply [...]

130/ 160
pub points
1
downloads

We analyzed this package 24 hours ago, and awarded it 130 pub points (of a possible 160):

Failed report section
Follow Dart file conventions
20 / 30trigger folding of the section

Failed check 0/10 points: Provide a valid pubspec.yaml

The package description is too long.

Search engines display only the first part of the description. Try to keep the value of the description field in your package's pubspec.yaml file between 60 and 180 characters.

Homepage URL is insecure.

Update the homepage field and use a secure (https) URL.

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: MIT.

Passed report section
Provide documentation
20 / 20trigger folding of the section

Passed check 10/10 points: 20% or more of the public API has dartdoc comments

4 out of 17 API elements (23.5 %) have documentation comments.

Some symbols that are missing documentation: websocket_reconnect, websocket_reconnect.WebsocketReconnect, websocket_reconnect.WebsocketReconnect.WebsocketReconnect.new, websocket_reconnect.WebsocketReconnect.delay, websocket_reconnect.WebsocketReconnect.getPlatformVersion.

Passed check 10/10 points: Package has an example

Failed report section
Platform support
20 / 20trigger folding of the section

Passed check 20/20 points: Supports 2 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

These platforms are not supported:

Package does not support platform `Windows`.

Because:

  • package:websocket_reconnect/websocket_reconnect.dart that declares support for platforms: Android, iOS.
Package does not support platform `Linux`.

Because:

  • package:websocket_reconnect/websocket_reconnect.dart that declares support for platforms: Android, iOS.
Package does not support platform `macOS`.

Because:

  • package:websocket_reconnect/websocket_reconnect.dart that declares support for platforms: Android, iOS.
Package does not support platform `Web`.

Because:

  • package:websocket_reconnect/websocket_reconnect.dart that declares support for platforms: Android, iOS.

These issues are present but do not affect the score, because they may not originate in your package:

Package does not support platform `Android`.

Because:

  • package:websocket_reconnect/websocket_reconnect.dart that imports:
  • package:connectivity_plus/connectivity_plus.dart that imports:
  • package:connectivity_plus/src/connectivity_plus_linux.dart that imports:
  • package:nm/nm.dart that declares support for platforms: Linux.
Package does not support platform `iOS`.

Because:

  • package:websocket_reconnect/websocket_reconnect.dart that imports:
  • package:connectivity_plus/connectivity_plus.dart that imports:
  • package:connectivity_plus/src/connectivity_plus_linux.dart that imports:
  • package:nm/nm.dart that declares support for platforms: Linux.

Failed check 0/0 points: Swift Package Manager support

Package does not support the Swift Package Manager on iOS

It does not contain ios/websocket_reconnect/Package.swift.

This package for iOS or macOS does not support the Swift Package Manager. It will not receive full points in a future version of the scoring model.

See https://docs.flutter.dev/to/spm for details.

Partially passed report section
Pass static analysis
40 / 50trigger folding of the section

Partially passed check 40/50 points: code has no errors, warnings, lints, or formatting issues

INFO: Uses 'await' on an instance of 'String', which is not a subtype of 'Future'.

lib/websocket_reconnect.dart:14:12

   ╷
14 │     return await Platform.operatingSystemVersion;
   │            ^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/websocket_reconnect.dart

INFO: The 'http' protocol shouldn't be used because it isn't secure.

pubspec.yaml:5:11

  ╷
5 │ homepage: http://www.thinkprosystems.com
  │           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵

To reproduce make sure you are using the lints_core and run flutter analyze pubspec.yaml

Failed report section
Support up-to-date dependencies
30 / 40trigger folding of the section

Failed check 0/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest Notes
connectivity_plus ^3.0.3 3.0.6 7.0.0
plugin_platform_interface ^2.0.2 2.1.8 2.1.8
web_socket_channel ^2.3.0 2.4.5 3.0.3
Transitive dependencies
Package Constraint Compatible Latest Notes
args - 2.7.0 2.7.0
async - 2.13.0 2.13.0
characters - 1.4.0 1.4.1
collection - 1.19.1 1.19.1
connectivity_plus_platform_interface - 1.2.4 2.0.1
crypto - 3.0.7 3.0.7
dbus - 0.7.11 0.7.11
ffi - 2.1.5 2.1.5
js - 0.6.7 0.7.2 Discontinued
material_color_utilities - 0.11.1 0.13.0
meta - 1.17.0 1.18.0
nm - 0.5.0 0.5.0
petitparser - 7.0.1 7.0.1
stream_channel - 2.1.4 2.1.4
typed_data - 1.4.0 1.4.0
vector_math - 2.2.0 2.2.0
web - 0.5.1 1.1.1
xml - 6.6.1 6.6.1

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

The constraint `^3.0.3` on connectivity_plus does not support the stable version `4.0.0`.

Try running dart pub upgrade --major-versions connectivity_plus to update the constraint.

The constraint `^2.3.0` on web_socket_channel does not support the stable version `3.0.0`.

Try running dart pub upgrade --major-versions web_socket_channel to update the constraint.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.23.5, Flutter 3.38.6, Dart 3.10.7.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
1
likes
130
points
1
downloads

Publisher

unverified uploader

Weekly Downloads

The "websocket_reconnect" is a convenient package for Flutter developers to automatically reconnect to a WebSocket when connection is lost. It eliminates the need for manual reconnection logic. Simply define your WebSocket connection and pass it to the "AutoReconnectWebSocket" constructor. The package monitors the connection and automatically reconnects it if lost. You can customize the retry interval and set a maximum number of attempts.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

connectivity_plus, flutter, plugin_platform_interface, web_socket_channel

More

Packages that depend on websocket_reconnect

Packages that implement websocket_reconnect