webpubsub

Send content inside request body to the specific connection.

Send content inside request body to the specific connection.

post/api/hubs/{hub}/connections/{connectionId}/:send

Path parameters

hubstring required

Target hub name, which should start with alphabetic characters and only contain alpha-numeric characters or underscore.

connectionIdstring required

The connection Id.

Query parameters

api-versionstring required

The API version to use for this operation.

messageTtlSecondsinteger

The time-to-live (TTL) value in seconds for messages sent to the service. 0 is the default value, which means the message never expires. 300 is the maximum value. If this parameter is non-zero, messages that are not consumed by the client within the specified TTL will be dropped by the service. This parameter can help when the client's bandwidth is limited.

Request body

string byte required

Response

The request has been accepted for processing, but processing has not yet completed.

Changes

Changed in 4 of the 10 revisions of this API.124

  • 2021-05-01-preview3c12a9fc63051See the full diff
    • api operation id WebPubSub_SendToConnection removed and replaced with SendToConnection

      api-operation-id-removed

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • 2021-05-01-preview19d6476bb9021See the full diff
    • added the new optional query request parameter messageTtlSeconds

      new-optional-request-parameter

  • 2021-05-01-previewdb70e5df6e151See the full diff
    • the query request parameter api-version became required

      request-parameter-became-required

  • 2021-05-01-preview5c057b21a13822See the full diff
    • the optional response header x-ms-error-code removed for the status default

      optional-response-header-removed

    • deleted the query request parameter messageTtlSeconds

      request-parameter-removed

    • api operation id SendToConnection removed and replaced with WebPubSub_SendToConnection

      api-operation-id-removed

    • the query request parameter api-version became optional

      request-parameter-became-optional

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog