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

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

145/ 160
pub points
49
downloads

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

Failed report section
Follow Dart file conventions
25 / 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

Failed check 0/5 points: Provide a valid CHANGELOG.md

`CHANGELOG.md` does not contain reference to the current version ("0.0.6").

Changelog entries help developers follow the progress of your package. Check out the Dart conventions for Maintaining a package changelog.

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

74 out of 120 API elements (61.7 %) have documentation comments.

Some symbols that are missing documentation: websocket_plugin, websocket_plugin.MockWebSocketAdapter.MockWebSocketAdapter.new, websocket_plugin.MockWebSocketAdapter.clearSentMessages, websocket_plugin.MockWebSocketAdapter.sentMessages, websocket_plugin.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 5 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

These platforms are not supported:

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:web_socket_channel/io.dart that imports:
  • package:web_socket/io_web_socket.dart that imports:
  • package:web_socket/src/io_web_socket.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:web_socket_channel/io.dart that imports:
  • package:web_socket/io_web_socket.dart that imports:
  • package:web_socket/src/io_web_socket.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.

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 7 issues. Showing the first 2:

/tmp/pana_ALCCKK/lib/src/adapters/web_socket_channel_adapter.dart doesn't match the Dart formatter.

To format your files run: dart format .

/tmp/pana_ALCCKK/lib/src/heartbeat_manager.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.6 3.0.6
material_color_utilities - 0.11.1 0.13.0
meta - 1.16.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.22.23, Flutter 3.35.5, Dart 3.9.2.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
1
likes
145
points
49
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