Files
sdk/client/html/src/EventSource.dart
T
dgrove@google.com 4bc64b8c2b Initial checkin.
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 04:52:33 +00:00

27 lines
603 B
Dart

// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
interface EventSourceEvents extends Events {
EventListenerList get error();
EventListenerList get message();
EventListenerList get open();
}
interface EventSource extends EventTarget {
static final int CLOSED = 2;
static final int CONNECTING = 0;
static final int OPEN = 1;
String get URL();
int get readyState();
void close();
EventSourceEvents get on();
}