github.com/openziti/transport@v0.1.5/constants.go (about)

     1  package transport
     2  
     3  import "time"
     4  
     5  const (
     6  	DefaultWsWriteTimeout      = time.Second * 10
     7  	DefaultWsReadTimeout       = time.Second * 5
     8  	DefaultWsIdleTimeout       = time.Second * 5
     9  	DefaultWsPongTimeout       = time.Second * 60
    10  	DefaultWsPingInterval      = (DefaultWsPongTimeout * 9) / 10
    11  	DefaultWsHandshakeTimeout  = time.Second * 10
    12  	DefaultWsReadBufferSize    = 4096
    13  	DefaultWsWriteBufferSize   = 4096
    14  	DefaultWsEnableCompression = true
    15  )