ShouldReconnectOnError and Compress are defaulted to true with New()

This commit is contained in:
Bruce Marriner 2016-01-24 13:21:32 -06:00
parent 8453404305
commit 94b6199051

View file

@ -35,6 +35,8 @@ func New(args ...interface{}) (s *Session, err error) {
s = &Session{
State: NewState(),
StateEnabled: true,
Compress: true,
ShouldReconnectOnError: true,
}
// If no arguments are passed return the empty Session interface.