Simplify the book-keeping a bit by simply creating a new document when loading. Copy the ClientSocket to the new document to keep client-state.
Simplify the book-keeping a bit by simply creating a new document when loading. Copy the ClientSocket to the new document to keep client-state.