Provide backwards compatibility for the old websocket's register function.