tweetcast/client/lib/gimite-web-socket-js-55ae639/flash-src/src/net/gimite/websocket/WebSocketEvent.as
changeset 306 70c9688a1486
parent 305 436a31d11f1d
parent 291 db1e6bfaa54e
child 307 6872c6aac6d6
--- a/tweetcast/client/lib/gimite-web-socket-js-55ae639/flash-src/src/net/gimite/websocket/WebSocketEvent.as	Thu Oct 06 11:56:48 2011 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,41 +0,0 @@
-package net.gimite.websocket {
-
-import flash.events.Event;
-
-/**
- * This class represents a generic websocket event.  It contains the standard "type"
- * parameter as well as a "message" parameter.
- */
-public class WebSocketEvent extends Event {
-  
-  public static const OPEN:String = "open";
-  public static const CLOSE:String = "close";
-  public static const MESSAGE:String = "message";
-  public static const ERROR:String = "error";
-
-  public var message:String;
-  public var wasClean:Boolean;
-  public var code:int;
-  public var reason:String;
-  
-  public function WebSocketEvent(
-      type:String, message:String = null, bubbles:Boolean = false, cancelable:Boolean = false) {
-    super(type, bubbles, cancelable);
-    this.message = message;
-  }
-  
-  public override function clone():Event {
-    var event:WebSocketEvent = new WebSocketEvent(
-        this.type, this.message, this.bubbles, this.cancelable);
-    event.wasClean = wasClean;
-    event.code = code;
-    event.reason = reason;
-    return event;
-  }
-  
-  public override function toString():String {
-    return "WebSocketEvent: " + this.type + ": " + this.message;
-  }
-}
-
-}