Skip to content

Commit

Permalink
Release Node.js v2.0.0 (#143)
Browse files Browse the repository at this point in the history
* update node changelog and pkg version

* set different reconnect delay for browser client and node
  • Loading branch information
edolix authored Jul 16, 2019
1 parent 618c953 commit bd5cfd1
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/common/src/BaseSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export default abstract class BaseSession {

protected connection: Connection = null
protected _jwtAuth: boolean = false
protected _reconnectDelay: number = 5000

private _idle: boolean = false
private _executeQueue: { resolve?: Function, msg: any}[] = []
Expand Down Expand Up @@ -241,7 +242,7 @@ export default abstract class BaseSession {
this.expiresAt = 0
}
if (this._autoReconnect) {
setTimeout(() => this.connect(), 1000)
setTimeout(() => this.connect(), this._reconnectDelay)
}
}

Expand Down
1 change: 1 addition & 0 deletions packages/common/src/BrowserSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default abstract class BrowserSession extends BaseSession {
private _iceServers: RTCIceServer[] = []
private _localElement: HTMLMediaElement = null
private _remoteElement: HTMLMediaElement = null
protected _reconnectDelay: number = 1000

protected _devices: ICacheDevices = {}
protected _audioConstraints: boolean | MediaTrackConstraints = true
Expand Down
10 changes: 10 additions & 0 deletions packages/node/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,20 @@ All notable changes to this project will be documented in this file.

This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.0.0] - 2019-07-16
### Added
- Add support for faxing. New call methods: `faxReceive`, `faxReceiveAsync`, `faxSend`, `faxSendAsync`.

## [2.0.0-rc.2] - 2019-07-10
### Added
- Add Relay calling `waitFor`, `waitForRinging`, `waitForAnswered`, `waitForEnding`, `waitForEnded` methods.

## [2.0.0-rc.1] - 2019-07-08
### Added
- Released new Relay Client interface.
- Add Relay Consumer.
- Handle SIGINT/SIGTERM signals.

## [1.2.1] - 2019-06-26
### Added
- Declaration files for TypeScript developers
Expand Down
2 changes: 1 addition & 1 deletion packages/node/package-lock.json

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

2 changes: 1 addition & 1 deletion packages/node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@signalwire/node",
"version": "2.0.0-rc.2",
"version": "2.0.0",
"description": "Client library for connecting to SignalWire.",
"author": "SignalWire Team <[email protected]>",
"main": "dist/node/index.js",
Expand Down

0 comments on commit bd5cfd1

Please sign in to comment.