var pushstream new PushStream timeout 30000 modes websocket longpollin

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
var pushstream = new PushStream({
timeout: 30000,
modes: 'websocket|longpolling',
host: 'lp.zhumarin.ru',
port: 80,
useJSONP: true,
messagesControlByArgument: false,
urlPrefixStream: '/lp',
urlPrefixEventsource: '/ev',
urlPrefixLongpolling: '/lp',
urlPrefixWebsocket: '/ws',
});