func (t *streamTransport) Unidirectional() bool {
	return true
}
Unidirectional returns whether transport is unidirectional.
package unihttpstream
import (
	"net/http"
	"sync"
	"github.com/centrifugal/centrifuge"
)
type streamTransport struct {
	mu           sync.Mutex
	req          *http.Request
	messages     chan []byte
	disconnectCh chan *centrifuge.Disconnect
	closedCh     chan struct{}
	closed       bool
}
func newStreamTransport(req *http.Request) *streamTransport {
	return &streamTransport{
		messages:     make(chan []byte),
		disconnectCh: make(chan *centrifuge.Disconnect),
		closedCh:     make(chan struct{}),
		req:          req,
	}
}
func (t *streamTransport) Name() string {
	return "uni_http_stream"
}
func (t *streamTransport) Protocol() centrifuge.ProtocolType {
	return centrifuge.ProtocolTypeJSON
}