Skip to content

Commit b8602ed

Browse files
committed
more edits
1 parent 320191b commit b8602ed

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

articles/azure-web-pubsub/includes/reference-json-requests.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ Format:
154154
* `ackId` is the identity of each request and should be unique. The service sends a [ack response message](#ack-response) to notify the process result of the request. For details, see [AckId and Ack Response](../concept-client-protocols.md#ackid-and-ack-response)
155155

156156
`dataType` can be one of `text`, `binary`, or `json`:
157+
157158
* `json`: data can be any type json supports and will be published as what it is; The default is `json`.
158159
* `text`: data is in string format, and the string data will be published;
159160
* `binary`: data is in base64 format, and the binary data will be published;

articles/azure-web-pubsub/includes/reference-protobuf-requests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Format:
2020

2121
* `ackId`: The unique identity of each request. The service sends a [ack response message](#ack-response) to notify the process result of the request. More details can be found at [AckId and Ack Response](../concept-client-protocols.md#ackid-and-ack-response)
2222

23-
* `dataType`: The format of the `data`, which can be `protobuf`, `text`, or `binary`, depending on the `data` in `MessageData`. The receiving clients can use `dataType` to correctly process the content.
23+
* `dataType`: The data format, which can be `protobuf`, `text`, or `binary` depending on the `data` in `MessageData`. The receiving clients can use `dataType` to correctly process the content.
2424

2525
* `protobuf`: When you set `send_to_group_message.data.protobuf_data`, the implicit `dataType` is `protobuf`. `protobuf_data` can be of the [Any](https://developers.google.com/protocol-buffers/docs/proto3#any) message type. All other clients receive a protobuf-encoded binary, which can be deserialized by the protobuf SDK. Clients that support only text-based content (for example, `json.webpubsub.azure.v1`) receive a Base64-encoded binary.
2626

articles/azure-web-pubsub/reference-json-reliable-webpubsub-subprotocol.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ The client implementation SHOULD always check if the `success` is `true` or `fal
8585

8686
### Message response
8787

88-
Clients can receive messages published from a group the client has joined, or from the server that sends messages to a specific client or user.
88+
Clients can receive messages published from a group the client has joined or from the server, which, operating in a server management role, sends messages to specific clients or users.
8989

9090
1. The response message from a group:
9191

articles/azure-web-pubsub/reference-json-webpubsub-subprotocol.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ The client implementation SHOULD always check if the `success` is `true` or `fal
6868

6969
### Message response
7070

71-
Clients can receive messages published from a group the client has joined or from the server.
71+
Clients can receive messages published from a group the client has joined or from the server, which, operating in a server management role, sends messages to specific clients or users.
7272

7373
1. When the message is from a group
7474

0 commit comments

Comments
 (0)