is it too early to use the websockets? [duplicate] - javascript

This question already has an answer here:
Closed 11 years ago.
Possible Duplicate:
WebSocket for HTML5
Hello,
I would like to use http://dev.w3.org/html5/websockets/
can I start or is it too early and no browser support it yet
Thank you

At the present time you can use something like socket.io library to provide fallback for browsers which don't support WebSocket functionality. Flash sockets or long polling will be used instead.

Related

Is there any method to get information from operating system in browser by using js? [duplicate]

This question already has answers here:
How to find the operating system details using JavaScript?
(18 answers)
Closed 2 years ago.
Is there any method to get information from operating system in browser by using js?
like python:
os.path.dirname
Navigator for device and os details and configuration. You could use the keys as you wish
navigator.platform
Yes there is, it can be accessed through the navigator object but it can be very sophisticated to extract these informations, so consider using a library like bowser.js

Using PPAPI to launch client applications e.g. Microsoft Word [duplicate]

This question already has an answer here:
Can a chrome application launch local program?
(1 answer)
Closed 7 years ago.
I am very new at PPAPI. I have already written a plugin to launch client's applications e.g. Word in my web based application using NPAPI (using a Java applet). Now I want to do that using PPAPI. Any chances?
Thanks
Reza
PPAPI is not a solution for what you are trying to do. You should look at Native Messaging (see this question for example).

is there an alternative to javascript for accessing the DOM API? [duplicate]

This question already has answers here:
Why is javascript the only client side scripting language implemented in browsers? [closed]
(3 answers)
Closed 7 years ago.
Every programming language has many alternatives, however, I could not find any alternative to javascript for accessing the DOM API? Why is this the case?
Thanks.
You have alternatives like Dart, LiveScript, Typescript, Babel and Coffeescript, yet these will be compiled/translated to native Javascript. The reason there is no real alternative is the fact that it is the only standard that is being implemented by all major browser "companies".

Can we detect network type using browser javascript code [duplicate]

This question already has answers here:
How do I check connection type (WiFi/LAN/WWAN) using HTML5/JavaScript?
(4 answers)
Closed 8 years ago.
Is there a way to enforce browser or web page to use 3G network ( not Wi-Fi ). I don't want to use any native code, I have to do this in JavaScript code.
It's not so simple at the moment. The browser would have to give out that information. Firefox started recently an experimental feature which allows this via the navigator DOM object, but it's the only browser that supports it so far.
Check out navigator.connection.

Internet connection code using html5 [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Will HTML5 allow web apps to make peer-to-peer HTTP connections?
I want to make a Internet connection from one device to another how to do the coding of it using html5 and javascript
You can't - at least not directly.
Not only does JS not include any suitable APIs, but things like NAT devices tend to get in the way of device-to-device connections.
Possible work arounds include having both devices make a connection to a central server, perhaps using WebSockets.

Categories