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

Socket library for creating real-time multiplayer games. Based on TCP, with the ability to send messages over UDP (planned).

10
likes
100/ 140
pub points
27%
popularity

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

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

partial
Provide documentation
10 / 20trigger folding of the section

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

33 out of 434 API elements (7.6 %) have documentation comments.

Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API. Document at least 20% of the public API elements.

Some symbols that are missing documentation: client, game_socket, game_socket.ClientDisconnectionReason, game_socket.ClientDisconnectionReason.ClientDisconnectionReason, game_socket.ClientDisconnectionReason.idle.

10/10 points: Package has an example

OK
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:game_socket/game_socket.dart that imports:
  • package:game_socket/server.dart that imports:
  • package:game_socket/src/server/namespace.dart that imports:
  • package:game_socket/src/server/game_socket_server.dart that imports:
  • package:game_socket/src/server/server_client.dart that imports:
  • package:game_socket/src/server/game_client.dart that imports:
  • package:game_socket/client.dart that imports:
  • package:game_socket/src/client/game_socket_client.dart that imports:
  • package:game_socket/src/engine/engine_socket.dart that imports:
  • dart:io
failed
Pass static analysis
30 / 50trigger folding of the section

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

Found 35 issues. Showing the first 2:

WARNING: This function has a nullable return type of 'Schema?', but ends without returning a value.

lib/src/client/client_options.dart:17:11

   ╷
17 │   Schema? addSchema(Schema schema) {
   │           ^^^^^^^^^
   ╵

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

WARNING: The value of the field '_timer' isn't used.

lib/src/server/game_socket_server.dart:22:21

   ╷
22 │   late final Timer? _timer;
   │                     ^^^^^^
   ╵

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

failed
Support up-to-date dependencies
10 / 20trigger folding of the section

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

Package Constraint Compatible Latest
meta ^1.3.0 1.14.0 1.14.0
uuid ^3.0.4 3.0.7 4.4.0
Transitive dependencies
Package Constraint Compatible Latest
collection - 1.18.0 1.18.0
crypto - 3.0.3 3.0.3
typed_data - 1.3.2 1.3.2

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

The constraint `^3.0.4` 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

Analyzed with Pana 0.22.3, Dart 3.3.3.

Check the analysis log for details.

10
likes
100
pub points
27%
popularity

Publisher

unverified uploader

Socket library for creating real-time multiplayer games. Based on TCP, with the ability to send messages over UDP (planned).

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

meta, uuid

More

Packages that depend on game_socket