Skip to content

Files

Latest commit

5436636 · Mar 20, 2019

History

History
This branch is 498 commits behind rabbitmq/rabbitmq-tutorials:main.

dart

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Mar 20, 2019
Dec 26, 2018
Dec 26, 2018
Dec 26, 2018
Dec 26, 2018
Dec 26, 2018
Dec 26, 2018
Dec 26, 2018
Dec 26, 2018
Dec 27, 2018
Dec 28, 2018
Dec 26, 2018
Dec 26, 2018
Dec 26, 2018
Dec 26, 2018

Dart code for RabbitMQ tutorials

Here you can find an Dart port of RabbitMQ tutorials.

Requirements

To run this code you need a Dart 2 server platform installed

Dart 2.0+

These tutorials use dart_amqp.

To install dependencies with pub, run:

pub get

Code

To run the examples, use dart source_file.dart.

Tutorial one: "Hello World!":

dart receive.dart
dart send.dart

Tutorial two: Work Queues

dart worker.dart
dart new_task.dart

Tutorial three: Publish/Subscribe

dart receive_logs.dart
dart emit_log.dart

Tutorial four: Routing

dart receive_logs_direct.dart info warning
dart emit_log_direct.dart info "A message"
dart emit_log_direct.dart warning "A warning"

Tutorial five: Topics

dart receive_logs_topic.dart "info.*" "warn.*"
dart emit_log_topic.dart "info.connections" "Connected"
dart emit_log_topic.dart "warn.connecctions" "A warning"

Tutorial six: RPC (Request/Response)

dart rpc_server.dart
dart rpc_client.dart