mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-26 13:59:23 +00:00
Log ws messages
This commit is contained in:
parent
6f4e543876
commit
6eaea7cc1e
@ -143,6 +143,7 @@ class UserWebSocket {
|
|||||||
const req_id = "r-"+reqCounter++;
|
const req_id = "r-"+reqCounter++;
|
||||||
|
|
||||||
// Send the message
|
// Send the message
|
||||||
|
console.info("WS request", req_id, title, data);
|
||||||
this.ws.send(JSON.stringify(new WsMessage({
|
this.ws.send(JSON.stringify(new WsMessage({
|
||||||
id: req_id,
|
id: req_id,
|
||||||
title: title,
|
title: title,
|
||||||
@ -166,6 +167,8 @@ class UserWebSocket {
|
|||||||
*/
|
*/
|
||||||
static async ProcessMessage(msg) {
|
static async ProcessMessage(msg) {
|
||||||
|
|
||||||
|
console.info("WS remote message", msg);
|
||||||
|
|
||||||
// Check if the message is not associated if any request
|
// Check if the message is not associated if any request
|
||||||
if(!msg.hasId)
|
if(!msg.hasId)
|
||||||
this.ProcessDetachedMessage(msg)
|
this.ProcessDetachedMessage(msg)
|
||||||
|
Loading…
Reference in New Issue
Block a user