doing cleanup: removed part of the API in Socket.js and outgoing listeners