prolic / HumusAmqp

PHP 7.4 AMQP library
https://humusamqp.readthedocs.io/
MIT License
76 stars 17 forks source link

handle json-rpc responses without id #68

Closed prolic closed 6 years ago

prolic commented 6 years ago

According to http://www.jsonrpc.org/specification#response_object the response object can also have null as id. This PR solves this bug and also provides a more clean way to handle internal messages.

/cc @oqq

coveralls commented 6 years ago

Coverage Status

Coverage decreased (-0.2%) to 91.097% when pulling 63a031eb8bdabbffc610eee92c2f3811f2bf492e on response_ids into c8451017c2a263aca5aad909bb969217ee5eecc5 on master.