$chan only resolves from an event, the timer is in a different scope. You need to pass the channel name to the alias.