Skip to content

Commit

Permalink
Use a property attributes instead of a key in headers
Browse files Browse the repository at this point in the history
  • Loading branch information
p-pichet committed Aug 12, 2024
1 parent f7d1ddc commit bd8e9de
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions transport/gps.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,21 +62,6 @@ $context->declareTopic($fooTopic);
$context->createProducer()->send($fooTopic, $message);
```

You can send attributes using headers :

```php
<?php
/** @var \Enqueue\Gps\GpsContext $context */

$fooTopic = $context->createTopic('foo');
$attributes = ['key1' => 'value1'];
$message = $context->createMessage('Hello world!', [], ['attributes' => $attributes]);

$context->declareTopic($fooTopic);

$context->createProducer()->send($fooTopic, $message);
```

## Consume message:

Before you can consume message you have to subscribe a queue to the topic.
Expand Down

0 comments on commit bd8e9de

Please sign in to comment.