Add TJSCloseEvent
Original Reporter info from Mantis: Simon Ameis @SAmeis
-
Reporter name: Simon Ameis
Original Reporter info from Mantis: Simon Ameis @SAmeis
- Reporter name: Simon Ameis
Description:
As documented at https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent there is a CloseEvent object which is used by WebSocket.onClose event. As far as I could see Chromium has additional fields; however I couldn't find any documentation on them.
Please add the following to unit Web:
TJSCloseEvent = class external name 'CloseEvent' (TJSEvent)
private
fcode: Word; external name 'code';
freason: TJSDOMString; external name 'reason';
fwasClean: Boolean; external name 'wasClean';
public
property code: Word read fcode;
property reason: TJSDOMString read freason;
property wasClean: Boolean read fwasClean;
end;
Mantis conversion info:
- Mantis ID: 37425
- Build: trunk
- Fixed in version: trunk
- Fixed in revision: 812