Adds pathname support for websockets.