How to identify the protocol of the Meteor connection
<p>I've wondered how to identify the current protocol if it's using websocket or polling.</p>

<p>-- in the client. (appended for certainty)</p>

<p>I've found a valid information from the debug console.</p>

<p><code>Meteor.connection._stream.socket.protocol</code></p>

<p>and it seems to have one value among...</p>

<pre><code>['websocket',
'xdr-streaming',
'xhr-streaming',
'iframe-eventsource',
'iframe-htmlfile',
'xdr-polling',
'xhr-polling',
'iframe-xhr-polling',
'jsonp-polling'];
</code></pre>

<p>is there more grace way to identify the current protocol?
and when would it be the fastest timing to detect the protocol?</p>

<p>By the way, I need it to use a different DDP server when the sticky sessions needed since AWS ELB doesn't support sticky sessions and websocket at the same time.</p>