20 lines
325 B
Go
20 lines
325 B
Go
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
|
|
}
|