listen to socket events for the duration of the request, socketid

closes #1