corrected 'edit' to 'emit' for socket io :pencil: