-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix inflection of TransportNames enum name
- Loading branch information
1 parent
61ab4e4
commit 6979737
Showing
4 changed files
with
17 additions
and
17 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
src/common/constants/TransportNames.ts → src/common/constants/TransportName.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
enum TransportNames { | ||
enum TransportName { | ||
WebSocket = 'web_socket', | ||
Comet = 'comet', | ||
XhrStreaming = 'xhr_streaming', | ||
XhrPolling = 'xhr_polling', | ||
} | ||
|
||
export default TransportNames; | ||
export default TransportName; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import TransportNames from '../constants/TransportNames'; | ||
import TransportName from '../constants/TransportName'; | ||
import { RestAgentOptions } from './ClientOptions'; | ||
|
||
export default interface IDefaults { | ||
connectivityCheckUrl: string; | ||
defaultTransports: TransportNames[]; | ||
baseTransportOrder: TransportNames[]; | ||
transportPreferenceOrder: TransportNames[]; | ||
upgradeTransports: TransportNames[]; | ||
defaultTransports: TransportName[]; | ||
baseTransportOrder: TransportName[]; | ||
transportPreferenceOrder: TransportName[]; | ||
upgradeTransports: TransportName[]; | ||
restAgentOptions?: RestAgentOptions; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
import IDefaults from 'common/types/IDefaults'; | ||
import TransportNames from 'common/constants/TransportNames'; | ||
import TransportName from 'common/constants/TransportName'; | ||
|
||
const Defaults: IDefaults = { | ||
connectivityCheckUrl: 'https://internet-up.ably-realtime.com/is-the-internet-up.txt', | ||
/* Order matters here: the base transport is the leftmost one in the | ||
* intersection of baseTransportOrder and the transports clientOption that's | ||
* supported. */ | ||
defaultTransports: [TransportNames.XhrPolling, TransportNames.XhrStreaming, TransportNames.WebSocket], | ||
baseTransportOrder: [TransportNames.XhrPolling, TransportNames.XhrStreaming, TransportNames.WebSocket], | ||
transportPreferenceOrder: [TransportNames.XhrPolling, TransportNames.XhrStreaming, TransportNames.WebSocket], | ||
upgradeTransports: [TransportNames.XhrStreaming, TransportNames.WebSocket], | ||
defaultTransports: [TransportName.XhrPolling, TransportName.XhrStreaming, TransportName.WebSocket], | ||
baseTransportOrder: [TransportName.XhrPolling, TransportName.XhrStreaming, TransportName.WebSocket], | ||
transportPreferenceOrder: [TransportName.XhrPolling, TransportName.XhrStreaming, TransportName.WebSocket], | ||
upgradeTransports: [TransportName.XhrStreaming, TransportName.WebSocket], | ||
}; | ||
|
||
export default Defaults; |