summaryrefslogtreecommitdiffstats
path: root/vendor/gopkg.in/olahol/melody.v1/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/gopkg.in/olahol/melody.v1/config.go')
-rw-r--r--vendor/gopkg.in/olahol/melody.v1/config.go22
1 files changed, 0 insertions, 22 deletions
diff --git a/vendor/gopkg.in/olahol/melody.v1/config.go b/vendor/gopkg.in/olahol/melody.v1/config.go
deleted file mode 100644
index 81ebd057..00000000
--- a/vendor/gopkg.in/olahol/melody.v1/config.go
+++ /dev/null
@@ -1,22 +0,0 @@
-package melody
-
-import "time"
-
-// Config melody configuration struct.
-type Config struct {
- WriteWait time.Duration // Milliseconds until write times out.
- PongWait time.Duration // Timeout for waiting on pong.
- PingPeriod time.Duration // Milliseconds between pings.
- MaxMessageSize int64 // Maximum size in bytes of a message.
- MessageBufferSize int // The max amount of messages that can be in a sessions buffer before it starts dropping them.
-}
-
-func newConfig() *Config {
- return &Config{
- WriteWait: 10 * time.Second,
- PongWait: 60 * time.Second,
- PingPeriod: (60 * time.Second * 9) / 10,
- MaxMessageSize: 512,
- MessageBufferSize: 256,
- }
-}