Skip to content

Commit

Permalink
[Web PubSub] Update CI for web-pubsub-express, fixes for docs (Azure#…
Browse files Browse the repository at this point in the history
  • Loading branch information
bterlson authored Apr 24, 2021
1 parent b50a070 commit 974e568
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 8 deletions.
2 changes: 2 additions & 0 deletions sdk/web-pubsub/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ extends:
Artifacts:
- name: azure-web-pubsub
safeName: webpubsub
- name: azure-web-pubsub-express
safeName: webpubsubexpress
3 changes: 2 additions & 1 deletion sdk/web-pubsub/web-pubsub-express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"test": "npm run build:test && npm run unit-test && npm run integration-test",
"unit-test:browser": "echo \"Browser is not supported.\" && exit 0",
"unit-test:node": "mocha --reporter ../../../common/tools/mocha-multi-reporter.js dist-test/index.node.js",
"unit-test": "npm run unit-test:node && npm run unit-test:browser"
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
"docs": "typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src"
},
"files": [
"dist/",
Expand Down
4 changes: 4 additions & 0 deletions sdk/web-pubsub/web-pubsub-express/tsdoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
"extends": ["../../../tsdoc.json"]
}
3 changes: 2 additions & 1 deletion sdk/web-pubsub/web-pubsub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"test": "npm run build:test && npm run unit-test && npm run integration-test",
"unit-test:browser": "echo \"Browser is not supported.\" && exit 0",
"unit-test:node": "mocha --reporter ../../../common/tools/mocha-multi-reporter.js dist-test/index.node.js",
"unit-test": "npm run unit-test:node && npm run unit-test:browser"
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
"docs": "typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src"
},
"files": [
"dist/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import { AzureWebPubSubServiceRestAPIOptionalParams } from "./models";
const packageName = "WebPubSub";
const packageVersion = "1.0.0";

/**
* @hidden
*/
export class AzureWebPubSubServiceRestAPIContext extends coreHttp.ServiceClient {
$host: string;
apiVersion?: string;
Expand Down
3 changes: 3 additions & 0 deletions sdk/web-pubsub/web-pubsub/src/groupClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ export interface WebPubSubGroup {
sendToAll(message: HttpRequestBody, options?: GroupSendToAllOptions): Promise<RestResponse>;
}

/**
* @hidden
*/
export class WebPubSubGroupImpl implements WebPubSubGroup {
private client!: GeneratedClient;

Expand Down
12 changes: 6 additions & 6 deletions sdk/web-pubsub/web-pubsub/src/hubClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,13 +194,13 @@ export class WebPubSubServiceClient {
public endpoint!: string;

/**
* Creates an instance of a HubClient for sending messages and managing groups, connections, and users.
* Creates an instance of a WebPubSubServiceClient for sending messages and managing groups, connections, and users.
*
* Example usage:
* ```ts
* import { HubClient } from "@azure/web-pubsub-management";
* import { WebPubSubServiceClient } from "@azure/web-pubsub";
* const connectionString = process.env['WEB_PUBSUB_CONNECTION_STRING'];
* const client = new HubClient(connectionString, 'chat');
* const client = new WebPubSubServiceClient(connectionString, 'chat');
* ```
*
* @param connectionString The connection string
Expand All @@ -210,14 +210,14 @@ export class WebPubSubServiceClient {
constructor(connectionString: string, hubName: string, options?: HubAdminClientOptions);

/**
* Creates an instance of a HubClient for sending messages and managing groups, connections, and users.
* Creates an instance of a WebPubSubServiceClient for sending messages and managing groups, connections, and users.
*
* Example usage:
* ```ts
* import { HubClient, AzureKeyCredential } from "@azure/web-pubsub-management";
* import { WebPubSubServiceClient, AzureKeyCredential } from "@azure/web-pubsub";
* const cred = new AzureKeyCredential("<your web pubsub api key>");
* const endpoint = "https://xxxx.webpubsubdev.azure.com"
* const client = new HubClient(endpoint, cred, 'chat');
* const client = new WebPubSubServiceClient(endpoint, cred, 'chat');
* ```
*
* @param endpoint The endpoint to connect to
Expand Down
4 changes: 4 additions & 0 deletions sdk/web-pubsub/web-pubsub/tsdoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
"extends": ["../../../tsdoc.json"]
}

0 comments on commit 974e568

Please sign in to comment.