socket_channel 1.0.0 copy "socket_channel: ^1.0.0" to clipboard
socket_channel: ^1.0.0 copied to clipboard

StreamChannel wrappers for WebSockets. Provides a cross-platform WebSocketChannel API, a cross-platform implementation of that API that communicates over an underlying StreamChannel.

120/ 160
pub points
4
downloads

We analyzed this package 4 days ago, and awarded it 120 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.

Repository URL doesn't exist.

At the time of the analysis https://github.com/Nghi-NV/web_socket_channel.git was unreachable. Make sure that the website is reachable via HEAD requests.

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: BSD-3-Clause.

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

64 out of 70 API elements (91.4 %) have documentation comments.

Some symbols that are missing documentation: html, io, web_socket_channel, web_socket_channel.WebSocketChannelException.WebSocketChannelException.from, web_socket_channel.WebSocketChannelException.WebSocketChannelException.new.

Passed check 10/10 points: Package has an example

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

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

These platforms are not supported:

Package not compatible with platform Android

Because:

  • package:socket_channel/html.dart that imports:
  • dart:html
Package not compatible with platform iOS

Because:

  • package:socket_channel/html.dart that imports:
  • dart:html
Package not compatible with platform Windows

Because:

  • package:socket_channel/html.dart that imports:
  • dart:html
Package not compatible with platform Linux

Because:

  • package:socket_channel/html.dart that imports:
  • dart:html
Package not compatible with platform macOS

Because:

  • package:socket_channel/html.dart that imports:
  • dart:html
Package not compatible with platform Web

Because:

  • package:socket_channel/io.dart that imports:
  • dart:io
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 5 issues. Showing the first 2:

INFO: 'dart:html' is deprecated and shouldn't be used. Use package:web and dart:js_interop instead.

lib/html.dart:6:1

  ╷
6 │ import 'dart:html';
  │ ^^^^^^^^^^^^^^^^^^^
  ╵

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

INFO: Missing type annotation.

lib/html.dart:74:32

   ╷
74 │   HtmlWebSocketChannel.connect(url,
   │                                ^^^
   ╵

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

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
async ^2.5.0 2.13.0 2.13.0
crypto ^3.0.0 3.0.7 3.0.7
stream_channel ^2.1.0 2.1.4 2.1.4
Transitive dependencies
Package Constraint Compatible Latest Notes
collection - 1.19.1 1.19.1
meta - 1.18.0 1.18.0
typed_data - 1.4.0 1.4.0

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.5, Dart 3.10.7.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
0
likes
120
points
4
downloads

Publisher

unverified uploader

Weekly Downloads

StreamChannel wrappers for WebSockets. Provides a cross-platform WebSocketChannel API, a cross-platform implementation of that API that communicates over an underlying StreamChannel.

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

async, crypto, stream_channel

More

Packages that depend on socket_channel