| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 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 | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
| 6 | 6 |
| 7 interface WebSocket extends EventTarget default _WebSocketFactoryProvider { | 7 interface WebSocket extends EventTarget default _WebSocketFactoryProvider { |
| 8 | 8 |
| 9 WebSocket(String url); | 9 WebSocket(String url); |
| 10 | 10 |
| 11 static final int CLOSED = 3; | 11 static final int CLOSED = 3; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 33 void addEventListener(String type, EventListener listener, [bool useCapture]); | 33 void addEventListener(String type, EventListener listener, [bool useCapture]); |
| 34 | 34 |
| 35 void close([int code, String reason]); | 35 void close([int code, String reason]); |
| 36 | 36 |
| 37 bool dispatchEvent(Event evt); | 37 bool dispatchEvent(Event evt); |
| 38 | 38 |
| 39 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | 39 void removeEventListener(String type, EventListener listener, [bool useCapture
]); |
| 40 | 40 |
| 41 bool send(String data); | 41 bool send(String data); |
| 42 } | 42 } |
| OLD | NEW |