server_client_comm 0.1.7

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 9

This package lets you communicate between the server and client, all you need to do is SocketMessage.shrinkT(x,[y]) to turn x into json and make y it's type and SocketMessage.expandT(x) to turn the json string x into an object.

this package uses dson.

¯\_(ツ)_/¯

did stuff i guess

0.1.5:

  • changed expandTransform to SocketMessage.expandT (static)
  • changed shrinkTransform to SocketMessage.shrinkT (static)

Use this package as a library

1. Depend on it

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


dependencies:
  server_client_comm: ^0.1.7

2. Install it

You can install packages from the command line:

with pub:


$ pub get

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

3. Import it

Now in your Dart code, you can use:


import 'package:server_client_comm/server_client_comm.dart';
  
Version Uploaded Documentation Archive
0.1.7 Oct 15, 2017 Go to the documentation of server_client_comm 0.1.7 Download server_client_comm 0.1.7 archive
0.1.6 Sep 30, 2017 Go to the documentation of server_client_comm 0.1.6 Download server_client_comm 0.1.6 archive
0.1.5 Sep 17, 2017 Go to the documentation of server_client_comm 0.1.5 Download server_client_comm 0.1.5 archive
0.1.1 Jul 23, 2017 Go to the documentation of server_client_comm 0.1.1 Download server_client_comm 0.1.1 archive
0.1.0 Jul 23, 2017 Go to the documentation of server_client_comm 0.1.0 Download server_client_comm 0.1.0 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
10
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
30
Overall:
Weighted score of the above. [more]
9
Learn more about scoring.

We analyzed this package on Oct 10, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0
  • pana: 0.12.4

Platforms

Detected platforms: unsure

Low code quality prevents platform classification.

Health issues and suggestions

Fix lib/src/sccomm.dart. (-90.04 points)

Analysis of lib/src/sccomm.dart failed with 8 errors, 1 hint, including:

line 49 col 33: Undefined name 'JSON'.

line 53 col 19: Undefined name 'JSON'.

line 58 col 20: Undefined name 'JSON'.

line 61 col 45: The method tear-off 'expandT' has type '(String) → dynamic' that isn't of expected type '(dynamic) → dynamic'. This means its parameter or return type does not match what is expected.

line 64 col 44: The method tear-off 'expandT' has type '(String) → dynamic' that isn't of expected type '(dynamic) → dynamic'. This means its parameter or return type does not match what is expected.

Format lib/server_client_comm.dart.

Run dartfmt to format lib/server_client_comm.dart.

Format lib/src/typesOfSame.dart.

Run dartfmt to format lib/src/typesOfSame.dart.

Maintenance issues and suggestions

Fix platform conflicts. (-20 points)

Low code quality prevents platform classification.

Use constrained dependencies. (-20 points)

The pubspec.yaml contains 1 dependency without version constraints. Specify version ranges for the following dependencies: dson.

Homepage is not helpful. (-10 points)

Update the homepage property: create a website about the package or use the source repository URL.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use server_client_comm.dart.

The description is too long. (-10 points)

Search engines will display only the first part of the description. Try to keep it under 180 characters.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.8.0 <3.0.0
dson any 0.15.1
Transitive dependencies
analyzer 0.32.6 0.33.0
args 1.5.0
async 2.0.8
build 0.12.8 1.0.1
built_mirrors_core 0.10.0
charcode 1.1.2
collection 1.14.11
convert 2.0.2
crypto 2.0.6
csslib 0.14.6
dart_style 1.1.3 1.2.0
dson_core 0.15.1
front_end 0.1.4+2 0.1.6
glob 1.1.7
html 0.13.3+3
kernel 0.3.4+2 0.3.6
logging 0.11.3+2
meta 1.1.6
package_config 1.0.5
path 1.6.2
plugin 0.2.0+3
serializable_core 0.11.0+1
source_gen 0.9.1+3
source_span 1.4.1
string_scanner 1.0.4
typed_data 1.1.6
utf 0.9.0+5
watcher 0.9.7+10
yaml 2.1.15