Skip to content

Commit

Permalink
revert unnecessary changes, update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneP-Zello committed Jul 8, 2024
1 parent cdb6157 commit c6cb0f6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
4 changes: 3 additions & 1 deletion sdks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,9 @@ session.connect().then(function() {
});
```

`serverURL` can be one of the [API entry points](https://github.com/zelloptt/zello-channel-api/blob/master/API.md#api-entry-points).
`serverURL` can be one of the [API entry points](https://github.com/zelloptt/zello-channel-api/blob/master/API.md#api-entry-points).
You may want to provide any string as a version of your app as `version`
You can also provide `platformName` string to identify your platform. If the provided value include "gateway" substring, Zello Alarm service will track the online status of this client (if enabled).

### Sending voice messages

Expand Down
2 changes: 1 addition & 1 deletion sdks/js/dist/zcc.session.js

Large diffs are not rendered by default.

6 changes: 0 additions & 6 deletions sdks/js/src/classes/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,6 @@ class Session extends Emitter {
this.refreshToken = null;
this.seq = 0;
this.version = this.options.version || VERSION;
if (this.options.PlatformName) {
this.PlatformName = this.options.PlatformName;
}
if (this.options.PlatformType) {
this.PlatformType = this.options.PlatformType;
}
this.maxConnectAttempts = this.options.maxConnectAttempts;
this.connectAttempts = this.maxConnectAttempts;
this.connectRetryTimeoutMs = this.options.connectRetryTimeoutMs;
Expand Down

0 comments on commit c6cb0f6

Please sign in to comment.