phpinnacle/ridge

There is no way to react on canceled connection

Volonda opened this issue · 1 comments

if PHPinnacle\Ridge\Client receive PHPinnacle\Ridge\Protocol\ConnectionCloseFrame it will never chnage state to STATE_NOT_CONNECTED. There is no way to detect/subscribe on canceled connection from user code.

Maybe neccesary to change state here?

$this->connection->close();

  • $this->state = self::STATE_NOT_CONNECTED;

This is not really a solution to the problem.
The problem is that the adapter only subscribes to successful frames. I will think about how to fix it in the future.