Helps register Socket.io channels without violating module encapsulation.