Cross-Browser Testing for WebSockets

The traditional way to test for websockets is this: [sourcecode] function WebSocketTest() { if (“WebSocket” in window) { alert(“Browser supports websocket”); } else { alert(“Browser does not support websocket”); } } … Run WebSocket test [/sourcecode] Although the above example will be technically correct for modern browsers it is important to consider some of the “experimental” implementation of this feature in earlier FireFox (Mozilla) browsers. In FireFox (Mozilla), experimental features (until they graduate) gets added with a prefix of “Moz”.

How-To: Turn off Firefox browser cache during development

Sometimes (when your are developing) you may want to force fetching all content fresh all the time including images, resources such as style sheet etc. To facilitate this you can do the following: Open a new window or tab in Firefox. Type about:configin the address bar. Search for “cache” in the search bar and look for network.http.use-cache in the filtered results. Double-click it will toggle it from “true” to “false”.