Node JS Tutorial
Node JS UDP Broadcast Example
This example will show you how to use Node.JS to create a client and server which will use UDP protocol to communicate. First, you need to import the node js dgram module. This module will control all UDP-related issues such as create a UDP client, create a UDP server, and then you can use the client …
Node JS Stream Example
Node JS Stream is an interface. It has been implemented in a lot of node modules such as the fs module, http module, etc. This example will show you how to use node stream to read data from a file, write data to file, and use pipe stream to transfer data from one stream to …
How To Use Node JS Buffer Module To Encode/Decode String Object
JavaScript objects can only store character sequence values and can not store binary data. But you may need to read and store binary data when making I/O operations such as read/write image file, read/write binary stream through a network, etc. To resolve this issue, Node JS provides the Buffer module to store and manipulate binary …
How To Use Node JS Buffer Module To Encode/Decode String Object Read More »
Node JS EventEmitter Example
Node JS EventEmitter is the object which can emit event to the event loop. It is the class in node js events module. It can be used in many cases such as when http web server receive a client request will use EventEmitter to create a on receive event, when fs module open a file …
Node JS Callback Example
Node JS is an asynchronous JavaScript framework, all the actions in Node app can not block the code execution flow. This can make the system more efficient and faster. So node JS use callback functions heavily to make the design available. This article will tell you what callback is and how it works in Node …