socket_io 1.0.0 copy "socket_io: ^1.0.0" to clipboard
socket_io: ^1.0.0 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
89%
popularity

We analyzed this package 9 hours 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

61 out of 162 API elements (37.7 %) 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 46 issues. Showing the first 2:

WARNING: The '?' is unnecessary because 'dynamic' is nullable without it.

lib/src/engine/server.dart:57:10

   ╷
57 │   dynamic? initialPacket;
   │          ^
   ╵

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

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

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.2.0 1.2.0
socket_io_common ^1.0.0-nullsafety.1 1.0.1 3.0.0
stream ^3.0.0 3.2.3+1 4.0.0
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.3.1 1.3.1
collection - 1.19.0 1.19.0
crypto - 3.0.6 3.0.6
http - 1.2.2 1.2.2
http_parser - 4.1.0 4.1.0
meta - 1.16.0 1.16.0
mime - 2.0.0 2.0.0
path - 1.9.0 1.9.0
rikulo_commons - 6.1.0 6.1.0
source_span - 1.10.0 1.10.0
string_scanner - 1.3.0 1.3.0
term_glyph - 1.2.1 1.2.1
typed_data - 1.3.2 1.3.2
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.0-nullsafety.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.12, Dart 3.5.3.

Check the analysis log for details.

130
likes
130
pub points
89%
popularity

Publisher

unverified uploader

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