Show More
@@ -32,18 +32,20 b' var rhodeCodeApp = Polymer({' | |||
|
32 | 32 | for (var i = 0; i < addChannels.length; i++) { |
|
33 | 33 | channels.push(addChannels[i]); |
|
34 | 34 | } |
|
35 | var channelstreamConnection = this.$['channelstream-connection']; | |
|
36 | channelstreamConnection.connectUrl = CHANNELSTREAM_URLS.connect; | |
|
37 |
channelstreamConnection. |
|
|
38 |
channelstreamConnection. |
|
|
39 |
channelstreamConnection. |
|
|
40 | // some channels might already be registered by topic | |
|
41 | for (var i = 0; i < channels.length; i++) { | |
|
42 | channelstreamConnection.push('channels', channels[i]); | |
|
35 | if (window.CHANNELSTREAM_SETTINGS && CHANNELSTREAM_SETTINGS.enabled){ | |
|
36 | var channelstreamConnection = this.$['channelstream-connection']; | |
|
37 | channelstreamConnection.connectUrl = CHANNELSTREAM_URLS.connect; | |
|
38 | channelstreamConnection.subscribeUrl = CHANNELSTREAM_URLS.subscribe; | |
|
39 | channelstreamConnection.websocketUrl = CHANNELSTREAM_URLS.ws + '/ws'; | |
|
40 | channelstreamConnection.longPollUrl = CHANNELSTREAM_URLS.longpoll + '/listen'; | |
|
41 | // some channels might already be registered by topic | |
|
42 | for (var i = 0; i < channels.length; i++) { | |
|
43 | channelstreamConnection.push('channels', channels[i]); | |
|
44 | } | |
|
45 | // append any additional channels registered in other plugins | |
|
46 | $.Topic('/connection_controller/subscribe').processPrepared(); | |
|
47 | channelstreamConnection.connect(); | |
|
43 | 48 | } |
|
44 | // append any additional channels registered in other plugins | |
|
45 | $.Topic('/connection_controller/subscribe').processPrepared(); | |
|
46 | channelstreamConnection.connect(); | |
|
47 | 49 | }, |
|
48 | 50 | |
|
49 | 51 | checkViewChannels: function () { |
General Comments 0
You need to be logged in to leave comments.
Login now