Added proper history ordering, with (hopefully) millisecond precision. Also added a notification on the client side when the socket is reconnected.