| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2010, 2011 Apple Inc. All Rights Reserved. | 3 * Copyright (C) 2010, 2011 Apple Inc. All Rights Reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 30 */ | 30 */ |
| 31 | 31 |
| 32 [ | 32 [ |
| 33 ActiveDOMObject, | 33 ActiveDOMObject, |
| 34 Constructor(DOMString url), | 34 Constructor(DOMString url), |
| 35 Constructor(DOMString url, sequence<DOMString> protocols), | 35 Constructor(DOMString url, sequence<DOMString> protocols), |
| 36 Constructor(DOMString url, DOMString protocol), | 36 Constructor(DOMString url, DOMString protocol), |
| 37 ConstructorCallWith=ExecutionContext, | 37 ConstructorCallWith=ExecutionContext, |
| 38 GlobalContext=Window&WorkerGlobalScope, | 38 Exposed=Window&Worker, |
| 39 RaisesException=Constructor, | 39 RaisesException=Constructor, |
| 40 WillBeGarbageCollected, | 40 WillBeGarbageCollected, |
| 41 ] interface WebSocket : EventTarget { | 41 ] interface WebSocket : EventTarget { |
| 42 [MeasureAs=WebSocketURL] readonly attribute DOMString URL; // Lowercased .ur
l is the one in the spec, but leaving .URL for compatibility reasons. | 42 [MeasureAs=WebSocketURL] readonly attribute DOMString URL; // Lowercased .ur
l is the one in the spec, but leaving .URL for compatibility reasons. |
| 43 readonly attribute DOMString url; | 43 readonly attribute DOMString url; |
| 44 | 44 |
| 45 // ready state | 45 // ready state |
| 46 const unsigned short CONNECTING = 0; | 46 const unsigned short CONNECTING = 0; |
| 47 const unsigned short OPEN = 1; | 47 const unsigned short OPEN = 1; |
| 48 const unsigned short CLOSING = 2; | 48 const unsigned short CLOSING = 2; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 62 | 62 |
| 63 attribute DOMString binaryType; | 63 attribute DOMString binaryType; |
| 64 | 64 |
| 65 [RaisesException] void send(ArrayBuffer data); | 65 [RaisesException] void send(ArrayBuffer data); |
| 66 [RaisesException] void send(ArrayBufferView data); | 66 [RaisesException] void send(ArrayBufferView data); |
| 67 [RaisesException] void send(Blob data); | 67 [RaisesException] void send(Blob data); |
| 68 [RaisesException] void send(DOMString data); | 68 [RaisesException] void send(DOMString data); |
| 69 | 69 |
| 70 [RaisesException] void close([Clamp] optional unsigned short code, optional
DOMString reason); | 70 [RaisesException] void close([Clamp] optional unsigned short code, optional
DOMString reason); |
| 71 }; | 71 }; |
| OLD | NEW |