| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2011, 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 interface EventSourceEvents extends Events { | |
| 6 EventListenerList get error(); | |
| 7 EventListenerList get message(); | |
| 8 EventListenerList get open(); | |
| 9 } | |
| 10 | |
| 11 interface EventSource extends EventTarget { | |
| 12 | |
| 13 static final int CLOSED = 2; | |
| 14 | |
| 15 static final int CONNECTING = 0; | |
| 16 | |
| 17 static final int OPEN = 1; | |
| 18 | |
| 19 String get URL(); | |
| 20 | |
| 21 int get readyState(); | |
| 22 | |
| 23 void close(); | |
| 24 | |
| 25 EventSourceEvents get on(); | |
| 26 } | |
| OLD | NEW |