Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export interface NegotiateResponse {
endpoint: string;
path: string;
token: string;
url: string;
}

// @public
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export function negotiate(
endpoint: url.origin,
path: url.pathname,
token: tokenResponse.token,
url: tokenResponse.baseUrl,
};
writeResponse(res, 200, message);
debug("negotiate, finished");
Expand Down
4 changes: 4 additions & 0 deletions sdk/webpubsub-socketio-extension/src/common/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ export interface NegotiateResponse {
* The token used to connect to Web PubSub for Socket.IO.
*/
token: string;
/**
* The url of Web PubSub for Socket.IO. The format is `https://<endpoint>/<path>`.
*/
url: string;
}

/**
Expand Down