socketcluster-client-java icon indicating copy to clipboard operation
socketcluster-client-java copied to clipboard

Socket options similar to js client

Open dannysofftie opened this issue 6 years ago • 0 comments

Docs have not specified how to pass other options, similar to what js client does. The only specified option is url, would like to pass options like below in js client.

var options = {
  path: '/socketcluster/',
  port: 8000,
  hostname: '127.0.0.1',
  autoConnect: true,
  secure: false,
  rejectUnauthorized: false,
  connectTimeout: 10000, //milliseconds
  ackTimeout: 10000, //milliseconds
  channelPrefix: null,
  disconnectOnUnload: true,
  multiplex: true,
  autoReconnectOptions: {
    initialDelay: 10000, //milliseconds
    randomness: 10000, //milliseconds
    multiplier: 1.5, //decimal
    maxDelay: 60000 //milliseconds
  },
  authEngine: null,
  codecEngine: null,
  subscriptionRetryOptions: {},
  query: {
    yourparam: 'hello'
  }
};

dannysofftie avatar Sep 12 '19 09:09 dannysofftie