Skip to content

3.0.0 Beta 1

Pre-release
Pre-release
Compare
Choose a tag to compare
@trowski trowski released this 21 Jun 20:19
v3.0.0-beta.1
054d94f

Initial release compatible with AMPHP v3.

As with other libraries compatible with AMPHP v3, most cases of parameters or returns of Promise<ResolutionType> have been replaced with ResolutionType.

  • Added Websocket as a prefix to several classes:
    • ClientFactory renamed to WebsocketClientFactory
    • ClientHandler renamed to WebsocketClientHander
    • Gateway renamed to WebsocketGateway
  • Split ClientHandler into two interfaces: WebsocketClientHandler and WebsocketHandshakeHandler
    • WebsocketHandshakeHandler handles inspecting incoming requests to upgrade to a websocket connection. Two simple implementations are provided, EmptyWebsocketHandshakeHandler and OriginWebsocketHandshakeHandler which will cover the needs of many users
    • WebsocketClientHandler handles connected websocket clients. Your application logic will be invoked by an object implementing this interface
  • Added Rfc6455UpgradeHandler that is used by Websocket as the default RequestHandler constructor argument handle the client handshake request. Generally there is no reason to override this behavior, but this version provides that opportunity if desired