Skip to content

Commit 434eba9

Browse files
committed
spec: add siteCode to connectionDetails
For protocol version 2 and up, the siteCode is included in the connectionDetails sent in a CONNECTED message.
1 parent a78eedc commit 434eba9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

textile/features.textile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1914,6 +1914,7 @@ h4. ConnectionDetails
19141914
** @(CD2g)@ @serverId@ string is a unique identifier for the front-end server that the client has connected to. This server ID is only used for the purposes of debugging
19151915
** @(CD2h)@ @maxIdleInterval@ is the maximum length of time in milliseconds that the server will allow no activity to occur in the server->client direction. After such a period of inactivity, the server will send a @HEARTBEAT@ or transport-level ping to the client. If the value is 0, the server will allow arbitrarily-long levels of inactivity.
19161916
** @(CD2i)@ @objectsGCGracePeriod@ integer - the length of time, in milliseconds, that the client library must wait before releasing resources for tombstoned objects and map entries (see "RTO10":../objects-features#RTO10)
1917+
** @(CD2j)@ @siteCode@ string - an identifier for the site that the client has connected to. This field is present in protocol version @2@ onwards
19171918
h4. ChannelProperties
19181919
* @(CP1)@ properties of a channel and its state
19191920
* @(CP2)@ The attributes of @ChannelProperties@ consist of:
@@ -2658,6 +2659,7 @@ class ConnectionDetails: // CD*, internal
26582659
serverId: String // CD2g
26592660
maxIdleInterval: Duration // CD2h
26602661
objectsGCGracePeriod: Int // CD2i
2662+
siteCode: String // CD2j
26612663

26622664
class Message: // TM*
26632665
constructor(name: String?, data: Data?) // TM4

0 commit comments

Comments
 (0)