Don't have each resource add events to a socket. Only keep one socket with events.