You don't need it for the Leap Motion portion, I don't know how the rest of your app works, though. Browsers allow web pages to make WebSocket connections directly.
I think generally people have used a server, such as node.js, to send tracking data from one computer to another, or because they were using node.js to create their app in the first place.