Cleaner map keys, using a named type instead of `string`
Pass the last index ID to the client
removed the index value from the json message of each message