Skip to content

Commit

Permalink
Merge pull request #650 from seiyako/master
Browse files Browse the repository at this point in the history
Add a workflow to be run at git push / merge PR
  • Loading branch information
seiyako committed Mar 3, 2023
2 parents c4488b7 + c94b6eb commit c5988c2
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 3 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Node.js CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run release
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,6 @@
connect.core.masterClient = new connect.NullClient();
var bus = connect.core.getEventBus();
if (bus) bus.unsubscribeAll();
var upstreamBus = connect.getUpstream();
if (upstreamBus) upstreamBus.unsubscribeAll();
connect.core.bus = new connect.EventBus();
connect.core.agentDataProvider = null;
connect.core.softphoneManager = null;
Expand Down
20 changes: 19 additions & 1 deletion src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,17 @@ declare namespace connect {
*/
readonly iframeTitle?: string;

/** Allows you to configure which configuration sections are displayed in the settings tab. **/
/** Allows you to configure which configuration sections are displayed in the settings tab. **/
readonly pageOptions?: PageOptions;

/** A timeout in ms that indicates how long streams will wait for the iframed CCP to respond to its SYNCHRONIZE event emissions. These happen continuously from the first time initCCP is called. They should only appear when there is a problem that requires a refresh or a re-login */
readonly ccpAckTimeout?: number;

/** A timeout in ms that indicates how long streams will wait to send a new SYNCHRONIZE event to the iframed CCP. These happens continuously from the first time initCCP is called. */
readonly ccpSynTimeout?: number;

/** A timeout in ms that indicates how long streams will wait for the initial ACKNOWLEDGE event from the shared worker while the CCP is still standing itself up. */
readonly ccpLoadTimeout?: number;
}


Expand Down Expand Up @@ -448,6 +457,15 @@ declare namespace connect {

/** Allows you to configure which configuration sections are displayed in the settings tab. */
readonly pageOptions?: PageOptions;

/** A timeout in ms that indicates how long streams will wait for the iframed CCP to respond to its SYNCHRONIZE event emissions. These happen continuously from the first time initCCP is called. They should only appear when there is a problem that requires a refresh or a re-login */
readonly ccpAckTimeout?: number;

/** A timeout in ms that indicates how long streams will wait to send a new SYNCHRONIZE event to the iframed CCP. These happens continuously from the first time initCCP is called. */
readonly ccpSynTimeout?: number;

/** A timeout in ms that indicates how long streams will wait for the initial ACKNOWLEDGE event from the shared worker while the CCP is still standing itself up. */
readonly ccpLoadTimeout?: number;
}

/** This enumeration lists the different types of agent states. */
Expand Down

0 comments on commit c5988c2

Please sign in to comment.