Skip to content

Releases: WarriorXK/PHPWebSockets

v2.6.0

31 Dec 10:27
6d0270a
Compare
Choose a tag to compare
  • Added support for async connect
  • Added CI for PHP 7.4
  • Fixed manual accept crashing on new connections
  • Fixed @throws tags in docblocks according to PHPStorm style
  • Misc fixes and cleanup

v2.5.0

05 Nov 16:27
754f1c1
Compare
Choose a tag to compare
  • Added a timeout to disconnects (10 seconds by default) with will cause a Read:: C_DISCONNECT_TIMEOUT update
  • Added Error:: C_READ_NO_STREAM_FOR_NEW_MESSAGE if the stream handler returned an invalid value
  • Changed Read::C_NEWCONNECTION to Read::C_NEW_CONNECTION
  • Changed the accept timeout response to HTTP 504 (Gateway Timed Out) instead of HTTP 408 (Request Timeout)
  • Fixed C_READ updates still being triggered after the connection has been closed
  • Fixed sending close frames before finishing normal messages

v2.4.1

09 Jul 11:16
4f7166b
Compare
Choose a tag to compare

Added ->waitUntilDisconnect
Disabled masking for IPC sockets
Added nightly PHP tests

v2.4.0

01 Jun 18:20
Compare
Choose a tag to compare
Merge branch 'release/2.4.0'

v2.3.2

09 Apr 10:16
52ee155
Compare
Choose a tag to compare
  • Added a testcase for denied connections
  • Fixed the connection reporting disconnects on denied connections
  • Fixed the updatewrapper reporting last contact for denied connections

v2.3.1

31 Mar 16:33
ca50dee
Compare
Choose a tag to compare
  • Added tests for the UpdateWrapper class
  • Added AConnection->getResourceIndex()
  • Fixed disconnects not always being reported
  • Fixed Read::StringForCode returning unknown for pongs
  • Moved hasHandshake() and getStream() from Connection and Client to AConnection

v2.3.0

18 Mar 16:01
Compare
Choose a tag to compare

Added the option to trust X-Forwarded-For and X-Real-IP
Added IStreamContainer->afterStreamSelect()
Fixed frames still being allowed after an disconnect
Fixed ->close() not causing an disconnect event
Removed all mentions of TCP in favour of the more generic term "socket" or "connection"

v2.2.0

14 Mar 09:37
Compare
Choose a tag to compare

Added UpdateWrapper class for easy use
Added optional logger argument in the constructor of the server class
Added missing closecode constants
Added PHP7.3 tests

v2.1.0

23 Jul 12:02
4c50050
Compare
Choose a tag to compare
  • Added an UpdatesWrapper class which simplifies usage by calling methods based on the updates returned
  • Added the option to not mask outgoing messages for websocket clients
  • Added AConnection->writeUntilEmpty
  • Added AUpdate->getSourceConnection
  • Added C_READ_DISCONNECT_DURING_HANDSHAKE
  • Added Connection->detach()
  • Updated PHPDocs
  • Changed the RSV bits to a single value in Frame instead of 3 seperate bools
  • Deprecated AUpdate->getSourceObject
  • Fixed PSR-4 include
  • Fixed autobahn CI

v2.0.1

02 Nov 21:05
c4b639c
Compare
Choose a tag to compare

Fixed the build-in autoloader not working