func (c *Client) GetSessionChunk(sid session.ID, offsetBytes, maxBytes int) ([]byte, error) {
	response, err := c.Get(c.Endpoint("sessions", string(sid), "stream"), url.Values{
		"offset": []string{strconv.Itoa(offsetBytes)},
		"bytes":  []string{strconv.Itoa(maxBytes)},
	})
	if err != nil {
		logrus.Error(err)
		return nil, trace.Wrap(err)
	}
	return response.Bytes(), nil
}
// GetSessionChunk allows clients to receive a byte array (chunk) from a recorded
// session stream, starting from 'offset', up to 'max' in length. The upper bound
// of 'max' is set to events.MaxChunkBytes
GetSessionChunk allows clients to receive a byte array (chunk) from a recorded
session stream, starting from 'offset', up to 'max' in length. The upper bound
of 'max' is set to events.MaxChunkBytes
// GetSessionChunk allows clients to receive a byte array ( chunk ) from a recorded // session stream starting from ' offset ' up to ' max ' in length . The upper bound // of ' max ' is set to events . MaxChunkBytes
func (c *Client) GetSessionChunk(sid session.ID, offsetBytes, maxBytes int) ([]byte, error) {
	response, err := c.Get(c.Endpoint("sessions", string(sid), "stream"), url.Values{
		"offset": []string{strconv.Itoa(offsetBytes)},
		"bytes":  []string{strconv.Itoa(maxBytes)},
	})
	if err != nil {
		logrus.Error(err)
		return nil, trace.Wrap(err)
	}
	return response.Bytes(), nil
}
func ( c * Client ) GetSessionChunk ( sid session . ID , offsetBytes , maxBytes int ) ( [ ] byte , error ) { response , err := c . Get ( c . Endpoint ( " " , string ( sid ) , " " ) , url . Values { " " : [ ] string { strconv . Itoa ( offsetBytes ) } , " " : [ ] string { strconv . Itoa ( maxBytes ) } , } ) if err != nil { logrus . Error ( err ) return nil , trace . Wrap ( err ) } return response . Bytes ( ) , nil }
GetSessionChunk allows clients to receive a byte array (chunk) from a recorded
session stream, starting from 'offset', up to 'max' in length.
GetSessionChunk allows clients to receive a byte array ( chunk ) from a recorded session stream starting from ' offset ' up to ' max ' in length .