server_client_comm 0.1.7

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 2

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]
8
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
0
Overall:
Weighted score of the above. [more]
2
Learn more about scoring.

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

  • Dart: 2.0.0
  • pana: 0.11.8

Platforms

Detected platforms: unsure

Low code quality prevents platform classification.

Issues and suggestions

Fix lib/src/sccomm.dart.

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.

Fix platform conflicts.

Low code quality prevents platform classification.

Homepage is not helpful.

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

Use constrained dependencies.

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

Package is pre-v1 release.

While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction of the API.

The description is too long.

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

Maintain an example.

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.

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.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.8.0 <3.0.0
dson any 0.15.0+1
Transitive dependencies
analyzer 0.32.4
args 1.5.0
async 2.0.8
build 0.12.7+3
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.4+1
dart_style 1.1.3
dson_core 0.15.0+1
front_end 0.1.4
glob 1.1.7
html 0.13.3+2
kernel 0.3.4
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.0+1
source_span 1.4.1
string_scanner 1.0.3
typed_data 1.1.6
utf 0.9.0+5
watcher 0.9.7+10
yaml 2.1.15