Versions in this module Expand all Collapse all v0 v0.1.3 Nov 19, 2025 v0.1.2 Nov 19, 2025 Changes in this version + const DefaultTestWaitTimeout + func EIOHandshake(t *testing.T, ts *httptest.Server) (sid string) + func EIOPoll(t *testing.T, ts *httptest.Server, sid string) (body string, status int) + func EIOPush(t *testing.T, ts *httptest.Server, sid, body string) + type TestServerTransport struct + Callbacks *transport.Callbacks + func NewTestServerTransport() *TestServerTransport + func (t *TestServerTransport) Close() + func (t *TestServerTransport) Discard() + func (t *TestServerTransport) Handshake(_ *parser.Packet, w http.ResponseWriter, r *http.Request) (string, error) + func (t *TestServerTransport) Name() string + func (t *TestServerTransport) PostHandshake(handshakePacket *parser.Packet) + func (t *TestServerTransport) QueuedPackets() []*parser.Packet + func (t *TestServerTransport) Send(packets ...*parser.Packet) + func (t *TestServerTransport) ServeHTTP(w http.ResponseWriter, r *http.Request) + type TestSocket struct + Closed bool + SendFunc func(packets ...*parser.Packet) + func NewTestSocket(id string) *TestSocket + func (s *TestSocket) Close() + func (s *TestSocket) ID() string + func (s *TestSocket) PingInterval() time.Duration + func (s *TestSocket) PingTimeout() time.Duration + func (s *TestSocket) Send(packets ...*parser.Packet) + func (s *TestSocket) TransportName() string + type TestWaiter struct + func NewTestWaiter(delta int) *TestWaiter + func (w *TestWaiter) Add(delta int) + func (w *TestWaiter) Done() + func (w *TestWaiter) Wait() + func (w *TestWaiter) WaitTimeout(t *testing.T, timeout time.Duration) (timedout bool) + type TestWaiterString struct + func NewTestWaiterString() *TestWaiterString + func (w *TestWaiterString) Add(s string) + func (w *TestWaiterString) Done(s string) + func (w *TestWaiterString) Wait() + func (w *TestWaiterString) WaitTimeout(t *testing.T, timeout time.Duration) (timedout bool) + type TimeoutWaiter struct + func NewTimeoutWaiter(delta int) *TimeoutWaiter + func (w *TimeoutWaiter) Add(delta int) + func (w *TimeoutWaiter) Done() + func (w *TimeoutWaiter) Wait() + func (w *TimeoutWaiter) WaitTimeout(timeout time.Duration) (timedout bool)