Complete routing for Tap WebSockets.
Refactoring.