ripple 0.5.3

  • README.md
  • Installing
  • Versions
  • 24

#Ripple

Lightweight Dart messaging server; supporting STOMP messaging protocol.

See also Stomp Dart Client.

Build Status

##Installation

Add this to your pubspec.yaml (or create it):

dependencies:
  ripple:

Then run the Pub Package Manager (comes with the Dart SDK):

pub install

##Usage

First, you have to import:

import "package:ripple/ripple.dart";

Then, you can start Ripple server by binding it to any number of Internet addresses and ports.

new RippleServer()
  ..start() //bind to port 61626
  ..startSecure(); //bind to port 61627 and using SSL

For how to use a STOMP client to access Ripple server, please refer to STOMP Dart Client.

###WebSocket

You can have Ripple server to serve a WebSocket connection. For example,

HttpServer httpServer;
RippleServer rippleServer;
...
httpServer.listen((request) {
  if (...) { //usually test request.uri to see if it is mapped to WebSocket
    WebSocketTransformer.upgrade(request).then((WebSocket webSocket) {
      rippleServer.serveWebSocket(webSocket);
    }).catchError((ex) {
      // Handle error
    });
  } else {
    // Do normal HTTP request processing.
  }
});

##Limitations

  • Support STOMP 1.2 or above
  • Support UTF-8 encoding

##Incompleteness

  • Transaction not supported.
  • Heart beat not supported.
  • ACK and NACK not supported.

##Potential Enhancement

  • Support subscribeBlob() better. Currently, messages will be held in the memory before sending to subscribers. It could be an issue if the message is huge.

1. Depend on it

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


dependencies:
  ripple: "^0.5.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:ripple/ripple.dart';
        
Version Uploaded Documentation Archive
0.5.3 Nov 5, 2013 Go to the documentation of ripple 0.5.3 Download ripple 0.5.3 archive
0.5.2 Oct 29, 2013 Go to the documentation of ripple 0.5.2 Download ripple 0.5.2 archive
0.5.1 Aug 15, 2013 Go to the documentation of ripple 0.5.1 Download ripple 0.5.1 archive
0.5.0 Aug 14, 2013 Go to the documentation of ripple 0.5.0 Download ripple 0.5.0 archive

Analysis

This feature is new.
We welcome feedback.

We analyzed this package, and provided a score, details, and suggestions below.

  • tool failures on Dec 6, 2017
  • Dart: 2.0.0-dev.8.0
  • pana: 0.7.3+1

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
81
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
0
Overall score:
Weighted score of the above. [more]
24

Platforms

Detected platforms: Flutter, server

all of the above

Suggestions

  • Fix lib/src/server_impl.dart.

    Strong-mode analysis of lib/src/server_impl.dart failed with the following error:

    line: 69 col: 51
    The argument type 'String' can't be assigned to the parameter type 'SecurityContext'.

  • Maintain CHANGELOG.md.

    Changelog entries help clients to follow the progress in your code.

Dependencies

Package Constraint Resolved Available
Direct dependencies
logging any 0.11.3+1
rikulo_commons any 2.3.6
stomp any 0.7.3
Transitive dependencies
matcher 0.12.1+4
meta 1.1.2
mime 0.9.4
path 1.5.1
quiver 0.26.2
stack_trace 1.9.1