func NewPolling(bufferFlushLimit int, receiveBufferSize int, originCheck func(*http.Request) bool) *Polling {
	transport := &Polling{
		originCheck: originCheck,
		buffer:      packet.NewBuffer(bufferFlushLimit),
		received:    make(chan packet.Packet, receiveBufferSize),
		running:     true,
	}

	return transport
}
// NewPolling creates new polling transport
NewPolling creates new polling transport
// NewPolling creates new polling transport
func NewPolling(bufferFlushLimit int, receiveBufferSize int, originCheck func(*http.Request) bool) *Polling {
	transport := &Polling{
		originCheck: originCheck,
		buffer:      packet.NewBuffer(bufferFlushLimit),
		received:    make(chan packet.Packet, receiveBufferSize),
		running:     true,
	}
	return transport
}
func NewPolling ( bufferFlushLimit int , receiveBufferSize int , originCheck func ( * http . Request ) bool ) * Polling { transport := & Polling { originCheck : originCheck , buffer : packet . NewBuffer ( bufferFlushLimit ) , received : make ( chan packet . Packet , receiveBufferSize ) , running : true , } return transport }
NewPolling creates new polling transport
NewPolling creates new polling transport