-
Notifications
You must be signed in to change notification settings - Fork 453
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Store custom client ID on Agent/Connection ID
It can be useful to identify which connection submitted what operation. This is already possible to some extent by tracking the ID randomly generated when instantiating `Agent`. However, this ID obviously changes on every connection, and bears no relation to the actual client that is connecting. This change allows the client to specify some ID when connecting, which will be concatenated on to the agent's ID like this: `<randomId>:<clientId>` Keeping the `randomId` ensures that the IDs remain unique, and concatenating the `clientId` allows the consumer to later determine which operations were submitted by the client that matches that ID, by checking the `src` field stored on an operation.
- Loading branch information
Alec Gibson
committed
Jul 16, 2018
1 parent
762e05d
commit feeb831
Showing
3 changed files
with
49 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters