OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 // WARNING: Do not edit - generated code. |
| 6 |
| 7 interface WebSocket extends EventTarget { |
| 8 |
| 9 static final int CLOSED = 3; |
| 10 |
| 11 static final int CLOSING = 2; |
| 12 |
| 13 static final int CONNECTING = 0; |
| 14 |
| 15 static final int OPEN = 1; |
| 16 |
| 17 final String URL; |
| 18 |
| 19 String binaryType; |
| 20 |
| 21 final int bufferedAmount; |
| 22 |
| 23 final String extensions; |
| 24 |
| 25 final String protocol; |
| 26 |
| 27 final int readyState; |
| 28 |
| 29 final String url; |
| 30 |
| 31 WebSocketEvents get on(); |
| 32 |
| 33 void _addEventListener(String type, EventListener listener, [bool useCapture])
; |
| 34 |
| 35 void close([int code, String reason]); |
| 36 |
| 37 bool _dispatchEvent(Event evt); |
| 38 |
| 39 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e]); |
| 40 |
| 41 bool send(String data); |
| 42 } |
| 43 |
| 44 interface WebSocketEvents extends Events { |
| 45 |
| 46 EventListenerList get close(); |
| 47 |
| 48 EventListenerList get error(); |
| 49 |
| 50 EventListenerList get message(); |
| 51 |
| 52 EventListenerList get open(); |
| 53 } |
OLD | NEW |