HTML Desktop App with Node.JS + Socket.IO

8

I need to develop an HTML-based chat app that connects to a Node.JS server that is running with Socket.IO.

I started to develop much of the app using TideSDK, but at the time of the integration of calling the Socket.IO script the app did not load, due to TideSDK problems.

I already tested the node-webkit, but the webkit notifications did not work and I'm not sure if Socket.IO is supported.

Does anyone have a platform suggestion for developing an HTML app for Desktop?

    
asked by anonymous 10.02.2014 / 19:30

2 answers

1

Is it really a problem to be a web application?

See: Node.js was made for the Web. Html5 is being developed to improve web applications. While Html5 is not totally equivalent to the potential of a well-designed Desktop application, it is sufficient for most cases.

I do not want to give an opinion here, I want to give a solution. Node.js is a platform for web development . If you do not want to use web, you can risk creating wrappers for GTK or WxWidgets, supported by C ++, for example. (If you do not know, Node.js natively supports C ++ add-ons)

Keep in mind that if you use Node.js, your application will be web. You can "pretend" that it is desktop for your clients, but in the background Node.js is web.

If your client does not have network access, you can create a package that installs and configures (if necessary) your Node application on your machine (or you can install it yourself if you do not want to venture out creating installers). Then creating a shortcut to open the browser in your application will be no problem.

If your client already has access and is willing to pay you for hosting, you can host your application on a server in the cloud. There are already good quality Node servers nowadays.

One last point: If you do not want to support all browsers (supporting all versions of IE has always been a problem), you do not need to. Ask the client to install a free browser such as Google Chrome or Firefox. That should not bother your client. All desktop applications depend on installer: management systems, office applications, games, even extensions to desktop applications depend on an installation. Why can not your application depend on one, too?

    
13.02.2014 / 12:02
1

Why do not you continue exactly as you are and run on top of a javaFx webview? How life phonegaps do! It will run up into the coffee maker and with java + javascript + webview.engine from javafx you have access to Java libraries like system.io and etc ...

Take a look at this: link

    
13.02.2014 / 20:59