Apple was set to introduce iMessages on iCloud with iOS 11, but delayed the implementation of this feature until a future release of iOS. Unfortunately, it's not coming in iOS 11.1, so I'd guess probably iOS 11.2 or 11.3 (next year, sadly). Right now, the only way is to do a full backup of your iPhone via iCloud or iTunes. Sucks, I know