Lines Matching refs:flashEvent
167 WebSocket.prototype.__handleEvent = function(flashEvent) { argument
169 if ("readyState" in flashEvent) {
170 this.readyState = flashEvent.readyState;
172 if ("protocol" in flashEvent) {
173 this.protocol = flashEvent.protocol;
177 if (flashEvent.type == "open" || flashEvent.type == "error") {
178 jsEvent = this.__createSimpleEvent(flashEvent.type);
179 } else if (flashEvent.type == "close") {
181 jsEvent.wasClean = flashEvent.wasClean ? true : false;
182 jsEvent.code = flashEvent.code;
183 jsEvent.reason = flashEvent.reason;
184 } else if (flashEvent.type == "message") {
185 var data = decodeURIComponent(flashEvent.message);
188 throw "unknown event type: " + flashEvent.type;