add a wrapper for websocketrails