|
@ -35,7 +35,7 @@ func (s *Session) writeMessage(message *envelope) { |
|
|
|
|
|
|
|
|
func (s *Session) writeRaw(message *envelope) error { |
|
|
func (s *Session) writeRaw(message *envelope) error { |
|
|
if s.closed() { |
|
|
if s.closed() { |
|
|
return errors.New("trie to write to a closed session") |
|
|
|
|
|
|
|
|
return errors.New("tried to write to a closed session") |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
s.conn.SetWriteDeadline(time.Now().Add(s.melody.Config.WriteWait)) |
|
|
s.conn.SetWriteDeadline(time.Now().Add(s.melody.Config.WriteWait)) |
|
|