connectars 1.4.0

  • Readme
  • Changelog
  • Example
  • Installing
  • 60

A dart project to create single binary output for a proxy web socket server.

1.4.0 #

  • /connect query param check for javascript sockets

example/main.dart

import 'package:connectars/config.dart';
import 'package:connectars/connectars.dart' as connectars;

void main(List<String> arguments) {
  connectars.run(ConfigCustom());
}

class ConfigCustom extends Config {
  @override
  final String SOCKET_LOG_PATH = '/var/log/some-project';
}

Use this package as a library

1. Depend on it

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


dependencies:
  connectars: ^1.4.0

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

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

3. Import it

Now in your Dart code, you can use:


import 'package:connectars/connectars.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
20
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
60
Learn more about scoring.

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

  • Dart: 2.8.4
  • pana: 0.13.14

Analysis suggestions

Package not compatible with runtime flutter-web on web

Because:

  • package:connectars/connectars.dart that imports:
  • package:connectars/server/server.dart that imports:
  • package:connectars/service/log.dart that imports:
  • package:connectars/service/config.dart that imports:
  • package:connectars/config.dart that imports:
  • dart:io

Package not compatible with runtime js

Because:

  • package:connectars/connectars.dart that imports:
  • package:connectars/server/server.dart that imports:
  • package:connectars/service/log.dart that imports:
  • package:connectars/service/config.dart that imports:
  • package:connectars/config.dart that imports:
  • dart:io

Health issues and suggestions

Document public APIs. (-1 points)

79 out of 79 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.7.0 <3.0.0
http ^0.12.0+4 0.12.1
Transitive dependencies
charcode 1.1.3
collection 1.14.13 1.15.0-nullsafety
http_parser 3.1.4
meta 1.2.2 1.3.0-nullsafety
path 1.7.0
source_span 1.7.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.2.0 1.3.0-nullsafety
Dev dependencies
pedantic ^1.8.0 1.9.2
test ^1.6.0