summaryrefslogtreecommitdiff
path: root/web_socket.js
Commit message (Collapse)AuthorAgeFilesLines
* Using typeof(MessageEvent) to switch two ways to create MessageEvent.v1.0.1Hiroshi Ichikawa2013-12-151-12/+10
|
* Fix for Issue #142Predrag Stojadinovic2013-12-121-1/+10
| | | | Fix for Issue #142 Firefox 26 removed event.initMessageEvent method so this had to be handled.
* Renaming flash_implemented to __isFlashImplementation.Hiroshi Ichikawa2012-08-091-4/+2
|
* @= flag of WebSocket implementationabonec2012-08-091-0/+4
|
* Switching to WebSocket version defined in RFC 6455.Hiroshi Ichikawa2011-12-271-1/+1
|
* Firing close event on error in send(). Hopefully fixes issue #92 .Hiroshi Ichikawa2011-12-171-4/+4
|
* Using MozWebSocket when available. Issue #87Hiroshi Ichikawa2011-12-171-3/+11
|
* Using swfobject.addDomLoadEvent() to simplify the initialization.Hiroshi Ichikawa2011-12-141-13/+5
|
* Initializing automatically when web_socket.js is dynamically loaded.Hiroshi Ichikawa2011-12-111-9/+19
| | | | Using DOMContentLoaded to initialize earlier when available.
* Adding wasClean, code, reason to onclose event object. Code was partially ↵Hiroshi Ichikawa2011-09-271-1/+5
| | | | | | taken from pull request #100 . Fixing closing behavior.
* Switching to hybi-10 protocol.Hiroshi Ichikawa2011-09-171-1/+1
|
* Merge branch 'master' into hybi-07Hiroshi Ichikawa2011-09-171-2/+9
|\ | | | | | | | | | | Conflicts: WebSocketMain.swf WebSocketMainInsecure.zip
| * Fixing scope of event callbacks (Bug #91 ).Hiroshi Ichikawa2011-09-101-1/+1
| |
| * close() should cancel create task.Joel Martin2011-08-311-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change the init and close code so that the async __flash.create() task is cancelled in close() so that you can do something like this which tests whether the newer binary API exists: var wstest = new WebSocket('ws://localhost:57111'); if (typeof(wstest.binaryType) !== "undefined") { ... } wstest.close(); wstest = null; Without the change, a Flash error occurs later when the connect fails (because the close() call doesn't cancel the connect).
* | Merge remote branch 'gimite/master' into hybi-08Joel Martin2011-08-291-13/+32
|\ \ | |/ | | | | | | | | Conflicts: WebSocketMain.swf WebSocketMainInsecure.zip
| * Fixing a bug checking Flash Player version.Hiroshi Ichikawa2011-08-071-1/+1
| |
| * Merging, renaming WebSocketLogger to WEB_SOCKET_LOGGER and making ↵Hiroshi Ichikawa2011-08-071-13/+18
| |\ | | | | | | | | | window.console as default logger.
| | * Add WebSocketLogger and use it in every submodule.Bernard Potocki2011-08-051-12/+18
| | | | | | | | | | | | This allow to easly manage debug switch, but also allow overwrite of logger for use in other libraries using web-socket-js.
| * | Adding flag WEB_SOCKET_SUPPRESS_CROSS_DOMAIN_SWF_ERROR in case the user ↵Hiroshi Ichikawa2011-08-071-2/+4
| | | | | | | | | | | | rename WebSocketMainInsecure.swf.
| * | Setting for forcing use of Flash over native Web Socket implementationCarl Byström2011-07-221-2/+2
| |/
| * Adding error message when HTML and SWF is in the different domains.Hiroshi Ichikawa2011-06-261-0/+11
| |
| * Adding comment about Flash version check.Hiroshi Ichikawa2011-06-251-0/+1
| |
| * Use getFlashPlayerVersion() to detect the Flash version more reliablyMax Roeleveld2011-06-151-1/+1
| |
* | Merging.Hiroshi Ichikawa2011-05-071-3/+8
|\ \ | |/
| * Accepting array in addition to string for protocol parameter.Hiroshi Ichikawa2011-05-061-3/+8
| |
| * Fix protocol attribute handling.Joel Martin2011-05-061-0/+3
| | | | | | | | | | | | | | | | | | - First, the protocol parameter to open should accept a list or protocols (either as a comma separate string or an array of strings). - Second, the chosen protocol should be reported back to and set as the protocol attribute in the WebSocket instance object itself.
* | Implement HyBi-07 version of the protocol.Joel Martin2011-05-021-1/+1
| | | | | | | | | | | | | | | | | | | | This is an initial implementation of http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-07 Limitations: - This does not implement the binary frame type since the API for this is still under discussion. - The client to server XOR mask is 0, i.e. masking is not used.
* | Fix protocol attribute handling.Joel Martin2011-05-021-0/+3
|/ | | | | | | | | - First, the protocol parameter to open should accept a list or protocols (either as a comma separate string or an array of strings). - Second, the chosen protocol should be reported back to and set as the protocol attribute in the WebSocket instance object itself.
* Fixing an error on IE when window.Event is defined by user.Hiroshi Ichikawa2011-03-131-2/+2
|
* Cleaning up event handling.Hiroshi Ichikawa2011-03-061-146/+75
| | | | | Passing real event to both onXXX and handlers added by addEventHandler(). Deleting check of cancelBubble which (probably) should not affect.
* Style change.Hiroshi Ichikawa2011-03-051-6/+5
|
* The handler should not "invalid events" for valid events. Just because weArnout Kazemier2011-03-041-7/+7
| | | | didn't attach a handler for it doesn't indicate that it's not a valid event.
* Merging JSBridge to WebSocketMain.Hiroshi Ichikawa2011-02-271-1/+1
|
* Some cleanup.Hiroshi Ichikawa2011-02-271-469/+363
| | | | | Pulling messages from JavaScript instead of pushing from Flash, to keep message order. Merging WebSocketController to WebSocket.
* Pulled in upstream changes.Wtritch2011-02-221-17/+30
|\
| * Making it clear that it requires Flash player 10 or later.Hiroshi Ichikawa2011-02-191-2/+2
| |
* | Completed updates: Removed FABridge dependence. Created javascript ↵Wtritch2011-02-221-349/+478
|/ | | | WebSocketController to manage multiple instances. Created central ExternalInterface manager at flash-src/bridge/JSBridge.as
* opera fix 2avl2011-02-071-1/+1
|
* opera 'handleEvents' fixavl2011-02-071-0/+1
|
* Switching to single event "event" instead of "open", "message", etc. in ↵Hiroshi Ichikawa2011-01-111-73/+53
| | | | | | | Flash interface, to keep order of all events and avoid recursive call error. Using setTimeout() for event callback to avoid recursive call error. Removing FABridge.EventsToCallLater. Hopefully setTimeout() above is more confident alternative.
* Calling Security.loadPolicyFile() with port 843 if ↵Hiroshi Ichikawa2011-01-111-4/+4
| | | | | | | Flash.loadFlashPolicyFile() has not been called. Renaming WebSocket.loadPolicyFile() to WebSocket.loadFlashPolicyFile(). WebSocket.loadFlashPolicyFile() now expects URL including xmlsocket://.
* Don't explicitly load the policy file, since flash will try port 843 anyway. ↵John Shahid2011-01-091-0/+6
| | | | Furthermore, explicitly setting the port to 843 will make flash retry port 843 three times before trying the destination port. Instead we expose a method to the api loadPolicyFile that can be used to set the location of the policy file.
* Fixes missing semicolonsStefan Axelsson2011-01-071-2/+2
|
* Cherry-pick: Not enough with checking existence of window.console. In IE ↵Hiroshi Ichikawa2010-12-041-2/+4
| | | | | | (depending of version/debugger), console object doesn't define log() and error() from https://github.com/newbamboo/web-socket-js/commit/2776dcfbf7847a5e19505432d8d63f8814e37b52
* Fix packets containing 0x00 bytes getting truncated after the first 0x00 byte.Ivo Wetzel2010-09-251-2/+2
|
* Making it possible to close() when readyState == CONNECTING.Hiroshi Ichikawa2010-09-131-1/+1
| | | | | Patch by kanaka. http://github.com/gimite/web-socket-js/issues#issue/37
* Making onclose event fired by ws.close() asynchronous.Hiroshi Ichikawa2010-09-131-7/+12
| | | | | Patch by kanaka. http://github.com/gimite/web-socket-js/issues#issue/35
* Supporting cross-domain SWF.Hiroshi Ichikawa2010-09-021-1/+1
|
* Making Flash Lite detection/handling a bit simpler. Adding comment.Hiroshi Ichikawa2010-08-221-52/+22
|
* Better handling of Flash Lite and Flash on Android devices by distinguishing ↵Stephen Leavitt2010-08-221-6/+54
| | | | between Flash and Flash Lite prior to loading the web-socket-js SWF.