mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
improve
This commit is contained in:
@@ -114,7 +114,10 @@ export class RoomService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.addMessageDB(ChatMessage)
|
this.addMessageDB(ChatMessage)
|
||||||
|
|
||||||
|
setTimeout(()=>{
|
||||||
this.scrollDown()
|
this.scrollDown()
|
||||||
|
}, 50)
|
||||||
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -678,8 +678,6 @@ updateRoomEventss(roomId, collection:string, funx: Function, ) {
|
|||||||
} else {
|
} else {
|
||||||
let messageStr = JSON.stringify(message)
|
let messageStr = JSON.stringify(message)
|
||||||
|
|
||||||
console.log('send', messageStr)
|
|
||||||
|
|
||||||
this.socket.send(messageStr)
|
this.socket.send(messageStr)
|
||||||
}
|
}
|
||||||
return requestId
|
return requestId
|
||||||
@@ -688,8 +686,6 @@ updateRoomEventss(roomId, collection:string, funx: Function, ) {
|
|||||||
onmessage: async (event: any)=> {
|
onmessage: async (event: any)=> {
|
||||||
const data = JSON.parse(event.data)
|
const data = JSON.parse(event.data)
|
||||||
|
|
||||||
console.log('onmessage', data)
|
|
||||||
|
|
||||||
for (const [key, value] of Object.entries(this.wsCallbacks)) {
|
for (const [key, value] of Object.entries(this.wsCallbacks)) {
|
||||||
if(value.type== 'Onmessage') {
|
if(value.type== 'Onmessage') {
|
||||||
const dontRepeat = await value.funx(data)
|
const dontRepeat = await value.funx(data)
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ export const environment = {
|
|||||||
domain: 'gabinetedigital.local', //gabinetedigital.local
|
domain: 'gabinetedigital.local', //gabinetedigital.local
|
||||||
defaultuser: 'paulo.pinto@gabinetedigital.local',//paulo.pinto paulo.pinto@gabinetedigital.local
|
defaultuser: 'paulo.pinto@gabinetedigital.local',//paulo.pinto paulo.pinto@gabinetedigital.local
|
||||||
defaultuserpwd: 'tabteste@006', //tabteste@006,
|
defaultuserpwd: 'tabteste@006', //tabteste@006,
|
||||||
chatOffline: true
|
chatOffline: false
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user