gosocketio/vendor/github.com/googollee/go-socket.io/engineio/packet/fake_writer.go

20 lines
325 B
Go
Raw Permalink Normal View History

2023-11-30 17:38:20 +08:00
package packet
import (
"io"
"github.com/googollee/go-socket.io/engineio/frame"
)
type fakeConnWriter struct {
Frames []Frame
}
func NewFakeConnWriter() *fakeConnWriter {
return &fakeConnWriter{}
}
func (w *fakeConnWriter) NextWriter(fType frame.Type) (io.WriteCloser, error) {
return newFakeFrame(w, fType), nil
}