polo_server 0.0.3 copy "polo_server: ^0.0.3" to clipboard
polo_server: ^0.0.3 copied to clipboard

A WebSocket Library written in Pure Dart. Easy API for writing WebSocket based Apps or Games. Also Support for Flutter and Web.

10
likes
140/ 160
pub points
52%
popularity

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

OK
Follow Dart file conventions
30 / 30trigger folding of the section

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: BSD-3-Clause.

OK
Provide documentation
20 / 20trigger folding of the section

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

26 out of 31 API elements (83.9 %) have documentation comments.

Some symbols that are missing documentation: polo_server.PoloClient.id, polo_server.PoloType.PoloType.fromMap, polo_server.PoloType.toMap, polo_server.PoloTypeAdapter.fromMap, polo_server.PoloTypeAdapter.toMap.

10/10 points: Package has an example

failed
Platform support
20 / 20trigger folding of the section

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:polo_server/polo_server.dart that imports:
  • package:polo_server/src/polo_server_helper.dart that imports:
  • dart:io

0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:polo_server/polo_server.dart that imports:
  • package:polo_server/src/polo_server_helper.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.dev/web/wasm for details.

partial
Pass static analysis
40 / 50trigger folding of the section

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

INFO: The argument type 'PoloClient' isn't related to 'String'.

lib/src/polo_server_base.dart:83:30

   ╷
83 │     if (_clients.containsKey(client)) {
   │                              ^^^^^^
   ╵

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

INFO: The argument type 'PoloClient' isn't related to 'String'.

lib/src/polo_server_base.dart:84:16

   ╷
84 │       _clients[client]!.send<T>(event, data);
   │                ^^^^^^
   ╵

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

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

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

Package Constraint Compatible Latest
uuid ^3.0.6 3.0.7 4.5.1
Transitive dependencies
Package Constraint Compatible Latest
collection - 1.19.1 1.19.1
crypto - 3.0.6 3.0.6
typed_data - 1.4.0 1.4.0

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

The constraint `^3.0.6` on uuid does not support the stable version `4.0.0`.

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

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

20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.22.15, Dart 3.5.4.

Check the analysis log for details.

10
likes
140
pub points
52%
popularity

Publisher

unverified uploader

A WebSocket Library written in Pure Dart. Easy API for writing WebSocket based Apps or Games. Also Support for Flutter and Web.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

uuid

More

Packages that depend on polo_server