TCPSocketErrorEvent.webidl (1027B)
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* This Source Code Form is subject to the terms of the Mozilla Public 3 * License, v. 2.0. If a copy of the MPL was not distributed with this 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 5 6 /* Dispatched as part of the "error" event in the following situations: 7 * - if there's an error detected when the TCPSocket closes 8 * - if there's an internal error while sending data 9 * - if there's an error connecting to the host 10 */ 11 12 [Func="mozilla::dom::TCPSocket::ShouldTCPSocketExist", 13 Exposed=Window] 14 interface TCPSocketErrorEvent : Event { 15 constructor(DOMString type, 16 optional TCPSocketErrorEventInit eventInitDict = {}); 17 18 readonly attribute DOMString name; 19 readonly attribute DOMString message; 20 readonly attribute unsigned long errorCode; // The internal nsresult error code. 21 }; 22 23 dictionary TCPSocketErrorEventInit : EventInit 24 { 25 DOMString name = ""; 26 DOMString message = ""; 27 unsigned long errorCode = 0; 28 };