mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-17 15:30:26 +00:00
- Adds BaseMessage interface to include required and optional properties common to all Messages. - Adds SuccessfulHandshakeMessage, UnsuccessfulHandshakeMessage, HandshakeMessage and SubscribeMessage interfaces with their appropriate fields. - Replaces Message interface with a union type of the other messager interfaces. - Adds specific Listener interfaces and uses them on the appropriate handlers. - Implements all fields documented at https://docs.cometd.org/current4/reference/#_bayeux_message_fields, and SuccesfulHandshakeMessage's undocumented `reestablish` field implemented here: https://github.com/cometd/cometd/blob/bb64aa2dee3e56c63fcbd46e3951abe278417851/cometd-javascript/common/src/main/webapp/js/cometd/cometd.js#L2180