MCPcopy Create free account
hub / github.com/koding/kite / threeDigits

Function threeDigits

sockjsclient/sockjsclient.go:303–305  ·  view source on GitHub ↗

threeDigits is used to generate a server_id.

()

Source from the content-addressed store, hash-verified

301
302// threeDigits is used to generate a server_id.
303func threeDigits() string {
304 return strconv.FormatInt(100+int64(utils.Int31n(900)), 10)
305}
306
307func makeWebsocketURL(u *url.URL, serverID, sessionID string) *url.URL {
308 if u.Scheme == "https" {

Callers 2

DialXHRFunction · 0.85
DialWebsocketFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected