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
Websocketas a prefix to several classes:ClientFactoryrenamed toWebsocketClientFactoryClientHandlerrenamed toWebsocketClientHanderGatewayrenamed toWebsocketGateway
- Split
ClientHandlerinto two interfaces:WebsocketClientHandlerandWebsocketHandshakeHandlerWebsocketHandshakeHandlerhandles inspecting incoming requests to upgrade to a websocket connection. Two simple implementations are provided,EmptyWebsocketHandshakeHandlerandOriginWebsocketHandshakeHandlerwhich will cover the needs of many usersWebsocketClientHandlerhandles connected websocket clients. Your application logic will be invoked by an object implementing this interface
- Added
Rfc6455UpgradeHandlerthat is used byWebsocketas the defaultRequestHandlerconstructor argument handle the client handshake request. Generally there is no reason to override this behavior, but this version provides that opportunity if desired