Skip to content

Commit

Permalink
report server parameters in response to {hi}
Browse files Browse the repository at this point in the history
  • Loading branch information
or-else committed Sep 23, 2019
1 parent 80ec0ea commit 5fa9d30
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion server/session.go
Expand Up @@ -508,7 +508,15 @@ func (s *Session) hello(msg *ClientComMessage) {
log.Println("s.hello:", "unsupported version", s.sid)
return
}
params = map[string]interface{}{"ver": currentVersion, "build": store.GetAdapterName() + ":" + buildstamp}

params = map[string]interface{}{
"ver": currentVersion,
"build": store.GetAdapterName() + ":" + buildstamp,
"maxMessageSize": globals.maxMessageSize,
"maxSubscriberCount": globals.maxSubscriberCount,
"maxTagCount": globals.maxTagCount,
"maxFileUploadSize": globals.maxFileUploadSize,
}

// Set ua & platform in the beginning of the session.
// Don't change them later.
Expand Down

0 comments on commit 5fa9d30

Please sign in to comment.