Skip to content
Advertisement

How are Objects with Functions Handled in Node.js?

I am currently using Node.js to handle the back-end of my website but I am unsure of how Websockets/Objects are handled together.

This is a template I am using as an example of my main class. (Sends web-requests to a specific page)

JavaScript

}

This is my Main Websocket File (Stripped for simplicity)

JavaScript

Lets say I receive data from the WebSocket and that data creates a new ViewClass object and starts running immediately. Will that Now Running code block the input/output of the Node.js Server? Or will it be handled in the background?

If there is any information I can provide to make it clearer let me know as I am extremely new to Websocket/Js and I am more than likely missing information.

Advertisement

Answer

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement