Skip to content

1.0.0 RC2

Pre-release
Pre-release

Choose a tag to compare

@trowski trowski released this 18 Apr 14:47
5fbeb1e
  • Fixed marking that peer initiated close when remote socket closes.
  • Close promise is now resolved with the close code and reason in a two-element array.
  • Promise returned from Rfc6455Client::receive() is now failed if the connection closes with a non-normal close code instead of resolving with null (which remains the case on normal closure). (#5)
  • Added Code::getName(int $code) that returns the constant name for the given code or null if it is not defined.
  • Timestamps in ClientMetadata are now set using Amp\getCurrentTime() instead of time().