Skip to content
This repository was archived by the owner on Jan 15, 2024. It is now read-only.

Commit 50e4126

Browse files
leJsboureausrobert-myscript
authored andcommitted
feat(websocket) add query param applicationKey
1 parent a9d1f5d commit 50e4126

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

dist/iink.esm.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/iink.esm.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/iink.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/iink.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/recognizer/websocket/WsRecognizerUtil.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ import {
1111
} from './iinkWsRecognizer'
1212

1313
function buildUrl (configuration, suffixUrl) {
14+
const host = configuration.recognitionParams.server.host
15+
const applicationKey = configuration.recognitionParams.server.applicationKey
1416
const scheme = (configuration.recognitionParams.server.scheme === 'https') ? 'wss' : 'ws'
15-
return `${scheme}://${configuration.recognitionParams.server.host}${suffixUrl}`
17+
return `${scheme}://${host}${suffixUrl}?applicationKey=${applicationKey}`
1618
}
1719

1820
/**

0 commit comments

Comments
 (0)