mirror of
				https://github.com/abhinavxd/libredesk.git
				synced 2025-11-03 21:43:35 +00:00 
			
		
		
		
	feat: Add HTTP utility functions for trusted origin checks feat: Implement typing status broadcasting for live chat clients and agents. feat: Add support for signed URLs in media manager fix: Update database migration to handle duplicate visitors with same email address. feat: Add conversation subscription and typing message models for WebSocket communication feat: Implement conversation subscription management in WebSocket hub this is used for broadcasting typing indicator. feat: Revamp widget JavaScript to improve mobile responsiveness and show unread messages if any.
		
			
				
	
	
		
			13 lines
		
	
	
		
			434 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			434 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
export const WS_EVENT = {
 | 
						|
    NEW_MESSAGE: 'new_message',
 | 
						|
    MESSAGE_PROP_UPDATE: 'message_prop_update',
 | 
						|
    CONVERSATION_PROP_UPDATE: 'conversation_prop_update',
 | 
						|
    CONVERSATION_SUBSCRIBE: 'conversation_subscribe',
 | 
						|
    CONVERSATION_SUBSCRIBED: 'conversation_subscribed',
 | 
						|
    TYPING: 'typing',
 | 
						|
}
 | 
						|
 | 
						|
// Message types that should not be queued because they become stale quickly
 | 
						|
export const WS_EPHEMERAL_TYPES = [
 | 
						|
    WS_EVENT.TYPING,
 | 
						|
] |