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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...