paynal 0.1.0 copy "paynal: ^0.1.0" to clipboard
paynal: ^0.1.0 copied to clipboard

outdated

Dart STOMP client

Paynal #

Dart STOMP client implementation.

Paynal is a simple STOMP v1.2 implementation. STOMP (The Simple Text Oriented Messaging Protocol) is a very simple and easy to implement protocol, coming from the HTTP school of design create by

Usage: #

import 'package:paynal/paynal.dart';

void main() {
  PaynalWebSocket('ws://127.0.0.1:15674/ws', 'guest', 'guest',
      onConnect: (socket) {
    final subscription = socket.subscribe('/queue/example', print);
    socket.send('/queue/example', body: 'example from socket 1');
    socket.send('/queue/example', body: 'example from socket 2');
    socket.send('/queue/example', body: 'example from socket 3');
    socket.send('/queue/example', body: 'example from socket 4');
    subscription.unsubscribe();
    socket.send('/queue/example', body: 'example from socket 5');
  });
}

Support: #

[x] CONNECTED, [x] CONNECT [x] SUBSCRIBE [x] MESSAGE [x] SEND [] UNSUBSCRIBE [] ERROR [] ACK [] NACK [] BEGIN [] COMMIT [] ABORT