Skip to content

Commit c8af9e2

Browse files
committed
wamp
1 parent 8711cf4 commit c8af9e2

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

pkg/wamp/LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
The MIT License (MIT)
2-
Copyright (c) 2017 Kotliar Maksym
2+
Copyright (c) 2018 Forma-Pro
33

44
Permission is hereby granted, free of charge, to any person obtaining a copy
55
of this software and associated documentation files (the "Software"), to deal

pkg/wamp/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Web Application Messaging Protocol Transport
1+
# Web Application Messaging Protocol (WAMP) Transport
22

33
[![Gitter](https://badges.gitter.im/php-enqueue/Lobby.svg)](https://gitter.im/php-enqueue/Lobby)
44
[![Build Status](https://travis-ci.org/php-enqueue/wamp.png?branch=master)](https://travis-ci.org/php-enqueue/wamp)

pkg/wamp/WampConsumer.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,12 @@ public function receive(int $timeout = 0): ?Message
9999

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

102-
return $this->message ?: null;
102+
$message = $this->message;
103+
104+
$this->timer = null;
105+
$this->message = null;
106+
107+
return $message;
103108
}
104109

105110
public function receiveNoWait(): ?Message

pkg/wamp/composer.json

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"require": {
99
"php": "^7.1.3",
1010
"queue-interop/queue-interop": "0.7.x-dev",
11+
"enqueue/dsn": "0.9.x-dev",
1112
"thruway/pawl-transport": "^0.5.0",
1213
"voryx/thruway": "^0.5.3"
1314
},

0 commit comments

Comments
 (0)