read concrete events from socket, implemented demuxing of events