diff --git a/session.go b/session.go index c6948a7..86eec00 100644 --- a/session.go +++ b/session.go @@ -35,7 +35,7 @@ func (s *Session) writeMessage(message *envelope) { func (s *Session) writeRaw(message *envelope) error { 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))