// Sends the provided data to the specified connection.
Sends the provided data to the specified connection.
// Sends the provided data to the specified connection .
func (c *Client) PostToConnection(ctx context.Context, params *PostToConnectionInput, optFns ...func(*Options)) (*PostToConnectionOutput, error) {
	if params == nil {
		params = &PostToConnectionInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "PostToConnection", params, optFns, addOperationPostToConnectionMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*PostToConnectionOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) PostToConnection ( ctx context . Context , params * PostToConnectionInput , optFns ... func ( * Options ) ) ( * PostToConnectionOutput , error ) { if params == nil { params = & PostToConnectionInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationPostToConnectionMiddlewares ) if err != nil { return nil , err } out := result . ( * PostToConnectionOutput ) out . ResultMetadata = metadata return out , nil }
Sends the provided data to the specified connection.
Sends the provided data to the specified connection .