phoenix_wings 0.0.3

  • Installing
  • Versions
  • 76


A Phoenix Channel implementation for Dart

Attempts to feature match the Javascript implementation found at phoenix.js


import 'package:phoenix_wings/phoenix_wings.dart';

final socket = new PhoenixSocket("ws://localhost:4000/websocket/socket");


final chatChannel ="room:chat", {"id": "myId"});

chatChannel.on("user_entered", PhoenixMessageCallback (Map payload, String _ref, String, _joinRef) {


[0.0.1] - TODO: Add release date.

  • TODO: Describe initial release.

1. Depend on it

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

  phoenix_wings: "^0.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 packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:phoenix_wings/phoenix_wings.dart';
Version Uploaded Documentation Archive
0.0.3 Jan 1, 2018 Go to the documentation of phoenix_wings 0.0.3 Download phoenix_wings 0.0.3 archive
0.0.2 Dec 30, 2017 Go to the documentation of phoenix_wings 0.0.2 Download phoenix_wings 0.0.2 archive
0.0.1 Dec 29, 2017 Go to the documentation of phoenix_wings 0.0.1 Download phoenix_wings 0.0.1 archive


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

  • Dart: 2.0.0-dev.49.0
  • pana: 0.10.6


Describes how popular the package is relative to other packages. [more]
54 / 100
Code health derived from static analysis. [more]
98 / 100
Reflects how tidy and up-to-date the package is. [more]
100 / 100
Overall score:
Weighted score of the above. [more]
Learn more about scoring.


Detected platforms: Flutter, other

Primary library: package:phoenix_wings/phoenix_wings.dart with components: io.


  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • 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 API.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 8 hints.

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

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

    Similar analysis of the following files failed:

    • lib/src/phoenix_push.dart (hint)
    • lib/src/phoenix_serializer.dart (hint)
    • lib/src/phoenix_socket.dart (hint)
    • lib/src/phoenix_socket_options.dart (hint)
  • 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 phoenix_wings.dart.


Package Constraint Resolved Available
Dev dependencies
dartdoc ^0.15.0+1
mockito ^2.2.1
test ^0.12.29+1