lastEventId

Returns the last event ID string, for server-sent events.

MDN Reference