• 0
Votes
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 195

Backtrace:

File: /home/u125378470/domains/lawhelpguru.org/public_html/application/views/question.php
Line: 195
Function: _error_handler

File: /home/u125378470/domains/lawhelpguru.org/public_html/application/controllers/Questions.php
Line: 416
Function: view

File: /home/u125378470/domains/lawhelpguru.org/public_html/index.php
Line: 315
Function: require_once

name Punditsdkoslkdosdkoskdo

Web Sockets DOM Object Detection

I want to detect support for web sockets without try/catch and without errors in the consoles of any browsers including older browsers that do not support web sockets.

I have not found anything I feel is related to web socket under the window and window.document objects. Also I've tried for (i in new) which the browsers don't see to like.

Absolutely no frameworks or libraries.

Essentially the DOM object detection should be able to fit in to an if condition...

if (x in y) {alert('Web Sockets is supported.');}