Jump to content

WebSocket Srv in Node

Recommended Posts

Question about Node classes, what is the difference between TNJWebSocketServer in SmartNJ.WebSocket and one in SmartNJ.Server.WebSocket?


I'm trying to create a kind of hybrid app, with two modes, client (standard SMS web client) and server (NodeJS server(with regular client as a GUI).

App starts as a standard web client, displaying some data from server, depending on config it should start a NodeJS server as well (to which other clients in same LAN will connect).

That of course doesn't work in browser so I was thinking of building it with nativefier since I've noticed it packages NodeJS (as dll) in the bundle.

However I haven't managed to do it yet, nativefier produce standalone app, and client (GUI) works but server part does not. Server code is fine since it works when started through Node. 

If anyone worked more with nativefier or has any idea how to make it done I would appreciate it.

Share this post

Link to post
Share on other sites

Share this post

Link to post
Share on other sites

Thanks, this looks like exacatly what I need.

I've been trying whole day to make it work and it's always failing with warning that require is not recognized.

It seems to me that NWjs developers do not test on Windows since with their exact steps (and code) app cannot even start, I'll try with other versions, hopefully there is one that works.


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now