vue-wiguet-chatweb 0.0.25 → 0.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-wiguet-chatweb",
3
- "version": "0.0.25",
3
+ "version": "0.0.27",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -275,15 +275,15 @@ const retryMessage = async (message: Message) => {
275
275
  };
276
276
 
277
277
  const connectMsRabbit = (app: any = "webchat") => {
278
- // const { virtualhost } = virtualHost.value;
278
+ const { virtualhost } = virtualHost.value;
279
279
  let data = sessionStorage.getItem("tabBrowser");
280
280
  if (!data) {
281
- let tab = appChatId.value;
281
+ let tab = Date.now();
282
282
  sessionStorage.setItem("tabBrowser", `${tab}`);
283
283
  }
284
284
  rabbitMQServiceListen.value = new RabbitMQService(
285
- `chat_virtual_host`,
286
- `webchat_${sessionStorage.getItem("tabBrowser")}`
285
+ `${virtualhost}`,
286
+ `widget_chat_${sessionStorage.getItem("tabBrowser")}`
287
287
  );
288
288
  rabbitMQServiceListen.value.connect();
289
289