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

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.

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: #

  • ✅ CONNECTED
  • ✅ CONNECT
  • ✅ SUBSCRIBE
  • ✅ MESSAGE
  • ✅ SEND
  • ✅ UNSUBSCRIBE
  • ❌ ERROR
  • ❌ ACK
  • ❌ NACK
  • ❌ BEGIN
  • ❌ COMMIT
  • ❌ ABORT