3.0.0 Beta 1
Pre-release
Pre-release
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 toWebsocketClientFactory
ClientHandler
renamed toWebsocketClientHander
Gateway
renamed toWebsocketGateway
- Split
ClientHandler
into two interfaces:WebsocketClientHandler
andWebsocketHandshakeHandler
WebsocketHandshakeHandler
handles inspecting incoming requests to upgrade to a websocket connection. Two simple implementations are provided,EmptyWebsocketHandshakeHandler
andOriginWebsocketHandshakeHandler
which will cover the needs of many usersWebsocketClientHandler
handles connected websocket clients. Your application logic will be invoked by an object implementing this interface
- Added
Rfc6455UpgradeHandler
that is used byWebsocket
as the defaultRequestHandler
constructor argument handle the client handshake request. Generally there is no reason to override this behavior, but this version provides that opportunity if desired