create router macro to simplify routing to a websocket handler