Adds events layer on top of SimpleSocket.