Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove nodecomet transport by default, various minor fixes & refactorings #382

Merged
merged 7 commits into from
Mar 10, 2017

Conversation

SimonWoolf
Copy link
Member

@SimonWoolf SimonWoolf commented Mar 8, 2017

1.0.0's been out for almost 12 hours, so time for 1.0.1 :)

I was planning to get this in for 1.0 as it's arguably a breaking change, but missed Matt's message last night saying he was going to release it, oh well

Now that node uses websockets as base transport, the connectivity check
transport is no longer the base transport. Rather than add a
connectivityCheckTransportPreferenceOrder or something, just use the
Http module (and for browsers have xhr and jsonp add their checks to
that module, like they do Http.Request); IMO it never made much sense to
tie it to the transport
@@ -6,7 +6,14 @@
define(['spec/common/modules/testapp_module', 'spec/common/modules/client_module', 'spec/common/modules/testapp_manager', 'async'],
function(testAppModule, clientModule, testAppManager, async) {
var utils = clientModule.Ably.Realtime.Utils;
var availableTransports = utils.keysArray(clientModule.Ably.Realtime.ConnectionManager.supportedTransports),
var supportedTransports = utils.keysArray(clientModule.Ably.Realtime.ConnectionManager.supportedTransports),
/* Don't include jsonp in availableTransports if xhr worksk. Why? Because
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo "worksk"

Copy link
Member

@paddybyers paddybyers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM apart from typo

SimonWoolf added a commit that referenced this pull request Mar 10, 2017
@SimonWoolf SimonWoolf merged commit 0fe93f3 into master Mar 10, 2017
@SimonWoolf SimonWoolf deleted the no-node-comet-and-misc-rebased branch October 11, 2017 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants