Typeclass for WebSockets. Checking request paths.
Refactoring.