ensure order of messages and dispatch error handler when buffer is full

This commit is contained in:
Ola Holmström
2015-09-18 14:50:46 +02:00
parent ff425ac175
commit ee4453a904
5 changed files with 52 additions and 28 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ type Config struct {
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 // Size of each sessions message buffer.
MessageBufferSize int // The max amount of messages that can be in a sessions buffer before it starts dropping them.
}
func newConfig() *Config {