how to get maketdepth using web socket node js
I recommend reviewing the documentation for WebSocket at this link: WebSocket Documentation.
For Node.js, you can use the Upstox Node.js SDK, available here: Upstox Node.js SDK. The examples provided in the documentation will help you get started quickly: Detailed Explanation of Feeder Functions.