adapter_websocket 0.0.7 copy "adapter_websocket: ^0.0.7" to clipboard
adapter_websocket: ^0.0.7 copied to clipboard

WebSocket encapsulated with the adapter pattern enhances usability and testability, enabling rapid environment switching.

150/ 160
pub points
44
downloads

We analyzed this package 5 days ago, and awarded it 150 pub points (of a possible 160):

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

Passed check 10/10 points: Provide a valid pubspec.yaml

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

76 out of 135 API elements (56.3 %) have documentation comments.

Some symbols that are missing documentation: adapter_websocket, adapter_websocket.MockWebSocketAdapter.MockWebSocketAdapter.new, adapter_websocket.MockWebSocketAdapter.clearSentMessages, adapter_websocket.MockWebSocketAdapter.sentMessages, adapter_websocket.MockWebSocketAdapter.setAutoRespondToPing.

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 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

  • ✓ Web

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

Package not compatible with platform Android

Because:

  • package:adapter_websocket/adapter_websocket_web.dart that imports:
  • package:flutter_web_plugins/flutter_web_plugins.dart that imports:
  • package:flutter_web_plugins/src/plugin_registry.dart that imports:
  • dart:ui_web
Package not compatible with platform iOS

Because:

  • package:adapter_websocket/adapter_websocket_web.dart that imports:
  • package:flutter_web_plugins/flutter_web_plugins.dart that imports:
  • package:flutter_web_plugins/src/plugin_registry.dart that imports:
  • dart:ui_web
Package not compatible with platform Windows

Because:

  • package:adapter_websocket/adapter_websocket_web.dart that imports:
  • package:flutter_web_plugins/flutter_web_plugins.dart that imports:
  • package:flutter_web_plugins/src/plugin_registry.dart that imports:
  • dart:ui_web
Package not compatible with platform Linux

Because:

  • package:adapter_websocket/adapter_websocket_web.dart that imports:
  • package:flutter_web_plugins/flutter_web_plugins.dart that imports:
  • package:flutter_web_plugins/src/plugin_registry.dart that imports:
  • dart:ui_web
Package not compatible with platform macOS

Because:

  • package:adapter_websocket/adapter_websocket_web.dart that imports:
  • package:flutter_web_plugins/flutter_web_plugins.dart that imports:
  • package:flutter_web_plugins/src/plugin_registry.dart that imports:
  • dart:ui_web
Package not compatible with platform Web

Because:

  • package:adapter_websocket/websocket_plugin.dart that imports:
  • package:adapter_websocket/src/adapters/web_socket_channel_adapter.dart that imports:
  • package:adapter_websocket/src/websocket_config.dart that imports:
  • dart:io

Failed check 0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:adapter_websocket/websocket_plugin.dart that imports:
  • package:adapter_websocket/src/adapters/web_socket_channel_adapter.dart that imports:
  • package:adapter_websocket/src/websocket_config.dart that imports:
  • dart:io

This package is not compatible with runtime wasm, and will not be rewarded full points in a future version of the scoring model.

See https://dart.cn/web/wasm for details.

Failed check 0/0 points: Swift Package Manager support

Package does not support the Swift Package Manager on macOS

It does not contain macos/adapter_websocket/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

Found 10 issues. Showing the first 2:

INFO: Library names are not necessary.

lib/websocket_plugin.dart:1:9

  ╷
1 │ library adapter_websocket;
  │         ^^^^^^^^^^^^^^^^^
  ╵

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

/tmp/pana_LKRVLZ/lib/adapter_websocket_web.dart doesn't match the Dart formatter.

To format your files run: dart format .

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

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

Package Constraint Compatible Latest Notes
plugin_platform_interface ^2.0.2 2.1.8 2.1.8
web ^1.0.0 1.1.1 1.1.1
web_socket_channel ^3.0.3 3.0.3 3.0.3
Transitive dependencies
Package Constraint Compatible Latest Notes
async - 2.13.0 2.13.0
characters - 1.4.0 1.4.1
collection - 1.19.1 1.19.1
crypto - 3.0.7 3.0.7
material_color_utilities - 0.11.1 0.13.0
meta - 1.17.0 1.17.0
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_socket - 1.0.1 1.0.1

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

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.1, Flutter 3.38.0, Dart 3.10.0-290.4.beta.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
1
likes
150
points
44
downloads

Publisher

verified publisherchihero.com

Weekly Downloads

WebSocket encapsulated with the adapter pattern enhances usability and testability, enabling rapid environment switching.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface, web, web_socket_channel

More

Packages that depend on adapter_websocket

Packages that implement adapter_websocket