Skip to content

Commit

Permalink
wamp
Browse files Browse the repository at this point in the history
  • Loading branch information
ASKozienko committed Oct 23, 2018
1 parent 8711cf4 commit c8af9e2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/wamp/LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
The MIT License (MIT)
Copyright (c) 2017 Kotliar Maksym
Copyright (c) 2018 Forma-Pro

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion pkg/wamp/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Web Application Messaging Protocol Transport
# Web Application Messaging Protocol (WAMP) Transport

[![Gitter](https://badges.gitter.im/php-enqueue/Lobby.svg)](https://gitter.im/php-enqueue/Lobby)
[![Build Status](https://travis-ci.org/php-enqueue/wamp.png?branch=master)](https://travis-ci.org/php-enqueue/wamp)
Expand Down
7 changes: 6 additions & 1 deletion pkg/wamp/WampConsumer.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,12 @@ public function receive(int $timeout = 0): ?Message

$this->client->getLoop()->run();

return $this->message ?: null;
$message = $this->message;

$this->timer = null;
$this->message = null;

return $message;
}

public function receiveNoWait(): ?Message
Expand Down
1 change: 1 addition & 0 deletions pkg/wamp/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"require": {
"php": "^7.1.3",
"queue-interop/queue-interop": "0.7.x-dev",
"enqueue/dsn": "0.9.x-dev",
"thruway/pawl-transport": "^0.5.0",
"voryx/thruway": "^0.5.3"
},
Expand Down

0 comments on commit c8af9e2

Please sign in to comment.