Skip to content

Commit

Permalink
Release Azure WebPubSub (Azure#33202)
Browse files Browse the repository at this point in the history
- Release web-pubsub-express SDK 1.0.6
- Release web-pubsub 1.1.4
- Fix live test for socketio
  • Loading branch information
cqnguy23 authored Feb 27, 2025
1 parent 16c3124 commit 2ef6bba
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 20 deletions.
10 changes: 1 addition & 9 deletions sdk/web-pubsub/web-pubsub-express/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,12 @@

# Release History

## 1.0.6 (Unreleased)
## 1.0.6 (2025-02-26)

### Features Added

- Add support for MQTT event handling

### Breaking Changes

### Bugs Fixed

- Fix issue with mismatched DTO for client protocol when calling generate client access URI API, which causes the response to be incorrect.

### Other Changes

## 1.0.5 (2023-06-28)

### Other Changes
Expand Down
2 changes: 1 addition & 1 deletion sdk/web-pubsub/web-pubsub-express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"test:browser": "echo \"Browser is not supported.\" && exit 0",
"test:node": "npm run build:test && npm run unit-test:node && npm run integration-test:node",
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
"unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser",
"unit-test:browser": "echo \"Browser is not supported.\" && exit 0",
"unit-test:node": "dev-tool run test:vitest",
"update-snippets": "dev-tool run update-snippets"
},
Expand Down
2 changes: 1 addition & 1 deletion sdk/web-pubsub/web-pubsub-express/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
{
"path": "./tsconfig.test.json"
},
}
],
"compilerOptions": {
"esModuleInterop": true
Expand Down
7 changes: 2 additions & 5 deletions sdk/web-pubsub/web-pubsub/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
# Release History

## 1.1.4 (Unreleased)
## 1.1.4 (2025-02-26)

### Features Added
- Added support to generate client access URL and token for `socketio` client protocol.

### Breaking Changes

### Bugs Fixed

### Other Changes
- Fix issue with mismatched DTO for client protocol when calling generate client access URI API, causing the response to be incorrect.

## 1.1.3 (2024-08-09)

Expand Down
10 changes: 6 additions & 4 deletions sdk/web-pubsub/web-pubsub/test/hubs.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,15 +397,17 @@ describe("HubClient", () => {
);
const res = await dacClient.getClientAccessToken({
userId: "brian",
groups: ["group1"],
clientProtocol: "socketio",
});
const url = new URL(res.url);
const tokenPayload = parseJwt(res.token!);
assert.ok(url.searchParams.has("access_token"));
assert.equal(url.host, new URL(client.endpoint).host);
assert.equal(url.pathname, `/clients/socketio/hubs/${client.hubName}`);
assert.equal(tokenPayload.aud, client.endpoint + `clients/socketio/hubs/${client.hubName}`);
assert.equal(url.host, new URL(dacClient.endpoint).host);
assert.equal(url.pathname, `/clients/socketio/hubs/${dacClient.hubName}`);
assert.equal(
tokenPayload.aud,
dacClient.endpoint + `/clients/socketio/hubs/${dacClient.hubName}`,
);
});
});
});

0 comments on commit 2ef6bba

Please sign in to comment.