func (c *GrpcGateway_SubscribeToEventsClient) CloseSend() error {
	return c.subClient.CloseSend()
}
CloseSend closes the send direction of the stream. It closes the stream
when non-nil error is met. It is also not safe to call CloseSend
concurrently with SendMsg.
package client
import (
	"context"
	"fmt"
	"sync"
	"time"
	"github.com/plgd-dev/hub/grpc-gateway/pb"
	"google.golang.org/grpc"
	"google.golang.org/grpc/metadata"
)
type GrpcGateway_SubscribeToEventsClient struct {
	subClient  pb.GrpcGateway_SubscribeToEventsClient
	grpcClient pb.GrpcGatewayClient
	deduplicateExpiration time.Duration
	events                []*pb.Event
	removeSubs            sync.Map
	newSubs               sync.Map
	subs                  sync.Map
}
func (c *GrpcGateway_SubscribeToEventsClient) Header() (metadata.MD, error) {
	return c.subClient.Header()
}
func (c *GrpcGateway_SubscribeToEventsClient) Trailer() metadata.MD {
	return c.subClient.Trailer()
}