Jump to content
Sign in to follow this  
DavidRM

Node Server using "net" module instead of WebSockets

Recommended Posts

I have a project where I need to support traditional TCP connections, and I want to use Node for the server.

From what I've seen, I should be able to achieve that using the Node "net" module. But there are no Delphi-like classes created for those sockets, like there are for WebSockets. There is a wrapper unit, but that's it.

My question is: Can I use the WebSockets code (SmartNJ.Server.WebSocket) as a template for how I could do the same for "net"?

I realize it's not a perfect analogy, but I'm trying to jumpstart things a bit.

Thanks.

-David

Share this post


Link to post
Share on other sites

Wondering if these posts would help at all : 

 

These posts cover a couple of node-usage scenarios. These scenarios start with vanilla js which is then transformed into object pascal

I'm not a node expert but this approach did work for me

 

Share this post


Link to post
Share on other sites
9 hours ago, lynkfs said:

Wondering if these posts would help at all : 

 

These posts cover a couple of node-usage scenarios. These scenarios start with vanilla js which is then transformed into object pascal

I'm not a node expert but this approach did work for me

 

Thanks! I'll check 'em out. -David

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
Sign in to follow this  

×