91-9990449935 0120-4256464 |
Node.js NetNode.js provides the ability to perform socket programming. We can create chat application or communicate client and server applications using socket programming in Node.js. The Node.js net module contains functions for creating both servers and clients. Node.js Net ExampleIn this example, we are using two command prompts:
server: File: net_server.js Open Node.js command prompt and run the following code: client: File: net_client.js Open Node.js command prompt and run the following code: Note: You must match the port. The client and server should have similar port for successful connection.
Next TopicNode.js Crypto
|