There is no way to react on canceled connection
Volonda opened this issue · 1 comments
Volonda commented
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?
Line 130 in b362ee6
- $this->state = self::STATE_NOT_CONNECTED;
mmasiukevich commented
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.