set a default clientversion of 0.11
This commit is contained in:
parent
f2abf8893c
commit
9eb9cf0726
@ -17,6 +17,12 @@ type HubConnectionOptions struct {
|
|||||||
func (this *HubConnectionOptions) prepareConnection() *HubConnection {
|
func (this *HubConnectionOptions) prepareConnection() *HubConnection {
|
||||||
if this.Self.ClientTag == "" {
|
if this.Self.ClientTag == "" {
|
||||||
this.Self.ClientTag = DEFAULT_CLIENT_TAG
|
this.Self.ClientTag = DEFAULT_CLIENT_TAG
|
||||||
|
this.Self.ClientVersion = DEFAULT_CLIENT_VERSION
|
||||||
|
}
|
||||||
|
|
||||||
|
// Shouldn't be blank either
|
||||||
|
if this.Self.ClientVersion == "" {
|
||||||
|
this.Self.ClientVersion = "0"
|
||||||
}
|
}
|
||||||
|
|
||||||
hc := HubConnection{
|
hc := HubConnection{
|
||||||
|
@ -10,6 +10,7 @@ import (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
DEFAULT_CLIENT_TAG string = "libnmdc.go"
|
DEFAULT_CLIENT_TAG string = "libnmdc.go"
|
||||||
|
DEFAULT_CLIENT_VERSION string = "0.11"
|
||||||
DEFAULT_HUB_NAME string = "(unknown)"
|
DEFAULT_HUB_NAME string = "(unknown)"
|
||||||
SEND_KEEPALIVE_EVERY time.Duration = 29 * time.Second
|
SEND_KEEPALIVE_EVERY time.Duration = 29 * time.Second
|
||||||
AUTO_RECONNECT_AFTER time.Duration = 30 * time.Second
|
AUTO_RECONNECT_AFTER time.Duration = 30 * time.Second
|
||||||
|
Loading…
Reference in New Issue
Block a user