theturtle32 / WebSocket-Node

A WebSocket Implementation for Node.JS (Draft -08 through the final RFC 6455)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to set route for WebSocket server?

vijaygopal opened this issue · comments

I have an html client and I would like listen to messages to the below path
ws://localhost:8980/MySampleApp/CarRental

By looking at the server constructor options I didn't find any options? Could you please let me know how to pass a path to the server so that the server listens to that path and not the root path like 'ws://localhost:8980'?