socket_io 1.0.1 copy "socket_io: ^1.0.1" to clipboard
socket_io: ^1.0.1 copied to clipboard

Port of JS/Node library Socket.io. It enables real-time, bidirectional and event-based communication cross-platform.

130
likes
130/ 160
pub points
1.09k
downloads

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

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

10/10 points: Provide a valid pubspec.yaml

Issue tracker URL doesn't exist.

At the time of the analysis https://github.com/rikulo/socket.io-dart/issues was unreachable. Make sure that the website is reachable via HEAD requests.

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: MIT.

OK
Provide documentation
20 / 20trigger folding of the section

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

63 out of 164 API elements (38.4 %) have documentation comments.

Some symbols that are missing documentation: socket_io, socket_io.EVENTS, socket_io.JSONPTransport, socket_io.JSONPTransport.JSONPTransport, socket_io.JSONPTransport.foot.

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:socket_io/socket_io.dart that imports:
  • package:socket_io/src/engine/transport/websocket_transport.dart that imports:
  • package:socket_io/src/engine/transport/transports.dart that imports:
  • package:socket_io/src/engine/transport/xhr_transport.dart that imports:
  • package:socket_io/src/engine/transport/polling_transport.dart that imports:
  • package:socket_io/src/engine/connect.dart that imports:
  • dart:io

0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:socket_io/socket_io.dart that imports:
  • package:socket_io/src/engine/transport/websocket_transport.dart that imports:
  • package:socket_io/src/engine/transport/transports.dart that imports:
  • package:socket_io/src/engine/transport/xhr_transport.dart that imports:
  • package:socket_io/src/engine/transport/polling_transport.dart that imports:
  • package:socket_io/src/engine/connect.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.

failed
Pass static analysis
30 / 50trigger folding of the section

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

Found 43 issues. Showing the first 2:

WARNING: Unnecessary type check; the result is always 'true'.

lib/src/engine/socket.dart:317:13

    ╷
317 │         if (seqFn is Function) {
    │             ^^^^^^^^^^^^^^^^^
    ╵

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

WARNING: Duplicate import.

lib/src/server.dart:20:8

   ╷
20 │ import 'namespace.dart';
   │        ^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/server.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
logging ^1.0.0 1.3.0 1.3.0
socket_io_common ^1.0.1 1.0.1 3.0.1
stream ^3.0.0 3.2.3+1 4.0.2
uuid ^3.0.4 3.0.7 4.5.1
Transitive dependencies
Package Constraint Compatible Latest
args - 2.6.0 2.6.0
async - 2.12.0 2.12.0
charcode - 1.4.0 1.4.0
collection - 1.19.1 1.19.1
crypto - 3.0.6 3.0.6
http - 1.2.2 1.2.2
http_parser - 4.1.1 4.1.1
meta - 1.16.0 1.16.0
mime - 2.0.0 2.0.0
path - 1.9.1 1.9.1
rikulo_commons - 6.1.0 6.1.0
source_span - 1.10.1 1.10.1
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
typed_data - 1.4.0 1.4.0
web - 1.1.0 1.1.0

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

Found 3 issues. Showing the first 2:

The constraint `^1.0.1` on socket_io_common does not support the stable version `2.0.0`.

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

The constraint `^3.0.0` on stream does not support the stable version `4.0.0`.

Try running dart pub upgrade --major-versions stream 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.17, Dart 3.6.0.

Check the analysis log for details.

130
likes
130
points
1.09k
downloads

Publisher

unverified uploader

Weekly Downloads

Port of JS/Node library Socket.io. It enables real-time, bidirectional and event-based communication cross-platform.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

logging, socket_io_common, stream, uuid

More

Packages that depend on socket_io