WebSocketStateEvent.as 784 B

1234567891011121314151617181920212223242526272829303132
  1. // Copyright: Hiroshi Ichikawa <http://gimite.net/en/>
  2. // Lincense: New BSD Lincense
  3. // Reference: http://dev.w3.org/html5/websockets/
  4. // Reference: http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol-31
  5. package {
  6. import flash.display.*;
  7. import flash.events.*;
  8. import flash.external.*;
  9. import flash.net.*;
  10. import flash.system.*;
  11. import flash.utils.*;
  12. import mx.core.*;
  13. import mx.controls.*;
  14. import mx.events.*;
  15. import mx.utils.*;
  16. public class WebSocketStateEvent extends Event {
  17. public var readyState:int;
  18. public var bufferedAmount:int;
  19. public function WebSocketStateEvent(type:String, readyState:int, bufferedAmount:int) {
  20. super(type);
  21. this.readyState = readyState;
  22. this.bufferedAmount = bufferedAmount;
  23. }
  24. }
  25. }