Versions in this module Expand all Collapse all v1 v1.4.6 Jun 4, 2020 Changes in this version + type Buffer struct + Data []byte + func (a *Buffer) UnmarshalJSON(b []byte) error + func (a Buffer) MarshalJSON() ([]byte, error) + type Decoder struct + func NewDecoder(r FrameReader) *Decoder + func (d *Decoder) Close() error + func (d *Decoder) DecodeArgs(types []reflect.Type) ([]reflect.Value, error) + func (d *Decoder) DecodeHeader(header *Header, event *string) error + func (d *Decoder) DiscardLast() (err error) + type Encoder struct + func NewEncoder(w FrameWriter) *Encoder + func (e *Encoder) Encode(h Header, args []interface{}) (err error) + type FrameReader interface + NextReader func() (engineio.FrameType, io.ReadCloser, error) + type FrameWriter interface + NextWriter func(ft engineio.FrameType) (io.WriteCloser, error) + type Header struct + ID uint64 + Namespace string + NeedAck bool + Type Type + type Type byte + const Ack + const Connect + const Disconnect + const Error + const Event