| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| */ | ||
| public function acknowledge(Message $message): void | ||
| { | ||
| // do nothing. redis transport always works in auto ack mode |
There was a problem hiding this comment.
redis -> wamp
Sorry, something went wrong.
| { | ||
| InvalidMessageException::assertMessageInstanceOf($message, WampMessage::class); | ||
|
|
||
| // do nothing on reject. redis transport always works in auto ack mode |
There was a problem hiding this comment.
same here
Sorry, something went wrong.
| $this->redelivered = false; | ||
| } | ||
|
|
||
| public function jsonSerialize(): array |
There was a problem hiding this comment.
could you use a concept from rdkafka transport (with a serializer interface)?
Sorry, something went wrong.
| @@ -0,0 +1,20 @@ | |||
| The MIT License (MIT) | |||
| Copyright (c) 2017 Kotliar Maksym | |||
There was a problem hiding this comment.
Copyright (c) 2018 Forma-Pro
Sorry, something went wrong.
| @@ -0,0 +1,27 @@ | |||
| # Web Application Messaging Protocol Transport | |||
There was a problem hiding this comment.
`# Web Application Messaging Protocol (WAMP) Transport
Sorry, something went wrong.
|
|
||
| $this->client->getLoop()->run(); | ||
|
|
||
| return $this->message ?: null; |
There was a problem hiding this comment.
We will have 100 clients in the context if we receive 100 message, right? Could we somehow reset them once a message has been received ?
Sorry, something went wrong.
|
Add docs, update readme. |
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
|
resolve conflicts |
Sorry, something went wrong.
Sorry, something went wrong.
| { | ||
| $dsn = new Dsn($dsn); | ||
|
|
||
| if ('wamp' !== $dsn->getSchemeProtocol()) { |
There was a problem hiding this comment.
wamp and ws
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Web Application Messaging Protocol (WAMP) Transport
A transport for Web Application Messaging Protocol.
WAMP is an open standard WebSocket subprotocol.
It uses internally Thruway PHP library voryx/thruway
Installation
Start the WAMP router
Thruway is now running on 127.0.0.1 port 9090
Create context
Consume message:
Start message consumer before send message to the topic
Subscription consumer
Send message to topic
back to index