Base polymer component for socket.io