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