add reconnect to websocket, add get world json object
This commit is contained in:
@@ -19,8 +19,12 @@ type FoundryTransport struct {
|
||||
ReadChan types.ReadChannels
|
||||
ExchangeChan types.ExchangeChannels
|
||||
|
||||
Http requests.FoundryHttpRequest
|
||||
IsAuth bool
|
||||
Http *requests.FoundryHttpRequest
|
||||
ReconnectTimeout time.Duration
|
||||
ReconnectNum int
|
||||
ReconnectNumMax int
|
||||
IsAuth bool
|
||||
IsLogin bool
|
||||
|
||||
Models *db.Models
|
||||
IsDbInit bool
|
||||
@@ -36,8 +40,12 @@ func NewFoundryTransport(dbConn *sql.DB, logger *slog.Logger, httpConfig *reques
|
||||
ProgressMsg: map[string]chan struct{}{},
|
||||
},
|
||||
|
||||
Http: *httpConfig,
|
||||
IsAuth: false,
|
||||
Http: httpConfig,
|
||||
ReconnectTimeout: 500 * time.Millisecond,
|
||||
IsAuth: false,
|
||||
IsLogin: false,
|
||||
ReconnectNumMax: 1,
|
||||
ReconnectNum: 0,
|
||||
|
||||
Models: db.NewModels(dbConn),
|
||||
IsDbInit: false,
|
||||
|
||||
Reference in New Issue
Block a user