• Skip to main content
  • Skip to primary sidebar
  • Home
  • News
  • Windows 11
  • Firefox
  • Chrome
  • Microsoft Edge
  • Android

Techdows

Latest Technology News

How to Check Whether a Browser Supports WebSockets or Not?

Last updated on July 30, 2014 By Venkat

WebSockets used to create interactive communication between a browser and a server, and this technology is used to build Multiplayer Games, HTML5 chats and much more. Mozilla dropped WebSockets support for Firefox 4 (Opera also dropped support for their browser due to security concerns) and recently added back to Firefox 6 Aurora channel, currently Chrome and Safari supports WebSockets. If you’re wondering how to know whether a Browser supports WebSockets? You can use simple JavaScript code in the address bar of browser to find out, and here is how.

Find any Browser’s Support for WebSockets

Firefox 4 not supports websockets

Open the Browser, and paste the below code in the address bar and press enter.

javascript:alert(“WebSockets are ” + (window.WebSocket ? “” : “not “) + “supported”);

websockets are supported

WebSockets not supported browser

Here above screenshots shows Opera and Firefox browsers doesn’t support WebSockets dialog box where as Chrome supports it.

Filed Under: How to, tips and tricks Tagged With: Browsers, Support, WebSockets

Reader Interactions

Comments

  1. Marko says

    June 3, 2011 at 6:48 am

    Nice tip. I just wanted to point out that Opera does support WebSockets (both latest stable and development snapshots), but they are disabled by default. To enable simply type “opera:config” (without the quotes) into the address bar. Then search for “sockets” and tick the checkbox to enable WebSockets. Click Save and restart the browser.

    • Venkat says

      June 3, 2011 at 10:00 am

      You’re right. I knew it and covered already here https://techdows.com/2010/12/enable-websockets-in-opera-11.html I should’ve mentioned about that in this post. Anyway thanks for observation.

  2. Keshav says

    September 26, 2014 at 12:55 pm

    It simply not works. I have set default search engine on address bar, is that reason that it will takes to the google page when I write `javascript:alert(‘whatever’)` in address bar

    • Venkat eswarlu says

      September 26, 2014 at 4:05 pm

      Gone are those days, modern browsers don’t allow running JavaScript from URL bar for security reasons, don’t worry, We’ve got you covered.
      Check this https://techdows.com/2014/09/how-to-run-javascript-commands-in-chrome-and-firefox-browsers.html

Primary Sidebar

Connect with us

Twitter; Facebook; YouTube;

Recent Posts

  • Solving the ChatGPT Network Error in Step by Step Guidelines
  • How to Fix 9Anime Error 500 in 6 Steps
  • Solving “xcrun: error: invalid active developer path” in Git on MacOS

Important Site links

  • About
  • Advertise
  • Contact
  • Privacy Policy

Copyright © 2023 Techdows.com