AI营销辅助 普强使用
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

90 lines
2.3 KiB

  1. /**
  2. * git do not control webim.config.js
  3. * everyone should copy webim.config.js to webim.config.js
  4. * and have their own configs.
  5. * In this way , others won't be influenced by this config while git pull.
  6. *
  7. */
  8. // for react native
  9. let location = {
  10. protocol: "https"
  11. };
  12. let config = {
  13. /*
  14. * XMPP server
  15. */
  16. // xmppURL: "wss://im-api.easemob.com/ws/", //小程序2.0sdk线上环境
  17. // xmppURL: "wss://im-api-hsb.easemob.com/ws/", //小程序2.0sdk沙箱环境
  18. // xmppURL: 'wss://im-api-new-hsb.easemob.com/websocket', //小程序沙箱环境
  19. xmppURL: 'wss://im-api-wechat.easemob.com/websocket',
  20. //小程序线上环境
  21. /*
  22. * Backend REST API URL
  23. */
  24. // apiURL: (location.protocol === 'https:' ? 'https:' : 'http:') + '//a1.easemob.com',
  25. apiURL: "https://a1.easemob.com",
  26. // 线上环境
  27. // apiURL: "https://a1-hsb.easemob.com", // 沙箱环境
  28. // apiURL: 'https://172.17.3.155:8080',
  29. /*
  30. * Application AppKey
  31. */
  32. appkey: "1106191017019057#qufang",
  33. /*
  34. * Whether to use HTTPS '1177161227178308#xcx'
  35. * @parameter {Boolean} true or false
  36. */
  37. https: false,
  38. /*
  39. * isMultiLoginSessions
  40. * true: A visitor can sign in to multiple webpages and receive messages at all the webpages.
  41. * false: A visitor can sign in to only one webpage and receive messages at the webpage.
  42. */
  43. isMultiLoginSessions: true,
  44. /**
  45. * Whether to use window.doQuery()
  46. * @parameter {Boolean} true or false
  47. */
  48. isWindowSDK: false,
  49. /**
  50. * isSandBox=true: xmppURL: 'im-api.sandbox.easemob.com', apiURL: '//a1.sdb.easemob.com',
  51. * isSandBox=false: xmppURL: 'im-api.easemob.com', apiURL: '//a1.easemob.com',
  52. * @parameter {Boolean} true or false
  53. */
  54. isSandBox: false,
  55. /**
  56. * Whether to console.log in strophe.log()
  57. * @parameter {Boolean} true or false
  58. */
  59. isDebug: false,
  60. /**
  61. * will auto connect the xmpp server autoReconnectNumMax times in background when client is offline.
  62. * won't auto connect if autoReconnectNumMax=0.
  63. */
  64. autoReconnectNumMax: 15,
  65. /**
  66. * the interval secons between each atuo reconnectting.
  67. * works only if autoReconnectMaxNum >= 2.
  68. */
  69. autoReconnectInterval: 2,
  70. /**
  71. * webrtc supports WebKit and https only
  72. */
  73. isWebRTC: false,
  74. /*
  75. * Set to auto sign-in
  76. */
  77. isAutoLogin: true
  78. };
  79. export default config;