socket_io_common 0.9.0+3

  • README.md
  • Installing
  • Versions
  • 67

socket_io_common #

Socket.io common parser library for Dart 2

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  socket_io_common: ^0.9.0+3

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:socket_io_common/socket_io_common.dart';
  
Version Uploaded Documentation Archive
0.9.0+3 Mar 18, 2019 Go to the documentation of socket_io_common 0.9.0+3 Download socket_io_common 0.9.0+3 archive
0.9.0+2 Mar 15, 2019 Go to the documentation of socket_io_common 0.9.0+2 Download socket_io_common 0.9.0+2 archive
0.9.0+1 Nov 20, 2018 Go to the documentation of socket_io_common 0.9.0+1 Download socket_io_common 0.9.0+1 archive
0.9.0 Nov 20, 2018 Go to the documentation of socket_io_common 0.9.0 Download socket_io_common 0.9.0 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
62
Health:
Code health derived from static analysis. [more]
86
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
50
Overall:
Weighted score of the above. [more]
67
Learn more about scoring.

We analyzed this package on Apr 23, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.2.0
  • pana: 0.12.14

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in primary library package:socket_io_common/socket_io_common.dart.

Health suggestions

Fix lib/src/parser/parser.dart. (-5.84 points)

Analysis of lib/src/parser/parser.dart reported 12 hints, including:

line 27 col 1: Prefer using /// for doc comments.

line 46 col 3: Prefer using /// for doc comments.

line 67 col 3: Prefer using /// for doc comments.

line 104 col 1: Prefer using /// for doc comments.

line 129 col 1: Prefer using /// for doc comments.

Fix lib/src/util/event_emitter.dart. (-5.36 points)

Analysis of lib/src/util/event_emitter.dart reported 11 hints, including:

line 15 col 1: Prefer using /// for doc comments.

line 20 col 1: Prefer using /// for doc comments.

line 24 col 3: Prefer using /// for doc comments.

line 29 col 3: Prefer using /// for doc comments.

line 34 col 3: Prefer using /// for doc comments.

Fix lib/src/engine/parser/parser.dart. (-1.99 points)

Analysis of lib/src/engine/parser/parser.dart reported 4 hints:

line 92 col 3: Prefer using /// for doc comments.

line 116 col 3: Prefer using /// for doc comments.

line 220 col 3: Prefer using /// for doc comments.

line 304 col 12: Use isNotEmpty instead of length

Fix lib/socket_io_common.dart. (-0.50 points)

Analysis of lib/socket_io_common.dart reported 1 hint:

line 1 col 1: Prefer using /// for doc comments.

Fix lib/src/engine/parser/wtf8.dart. (-0.50 points)

Analysis of lib/src/engine/parser/wtf8.dart reported 1 hint:

line 1 col 1: Prefer using /// for doc comments.

Maintenance issues and suggestions

Provide a file named CHANGELOG.md. (-20 points)

Changelog entries help developers follow the progress of your package. See the example generated by stagehand.

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and socket_io_common.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
logging ^0.11.3+2 0.11.3+2
Dev dependencies
test ^1.0.0