amsync/obj.py
def from_ws(self, j: Dict[str, Any]) -> Msg:
        """
        Returns a Msg containing the information from the websocket message
        
        Update actual_com and actual_chat with the chat and community of the message received
        """

        global actual_chat, actual_com

        actual_chat = get_value(j, 'chatMessage', 'threadId', convert=str)
        actual_com  = get_value(j, 'ndcId', convert=str)

        return Msg._make(j)

        Returns a Msg containing the information from the websocket message
        
        Update actual_com and actual_chat with the chat and community of the message received
        
Returns a Msg containing the information from the websocket message
Update actual_com and actual_chat with the chat and community of the message received
Returns a Msg containing the information from the websocket message Update actual_com and actual_chat with the chat and community of the message received
def from_ws(self, j: Dict[str, Any]) -> Msg:
        global actual_chat, actual_com
        actual_chat = get_value(j, 'chatMessage', 'threadId', convert=str)
        actual_com  = get_value(j, 'ndcId', convert=str)
        return Msg._make(j)
def from_ws ( self , j : Dict [ str , Any ] ) -> Msg : global actual_chat , actual_com actual_chat = get_value ( j , 'chatMessage' , 'threadId' , convert = str ) actual_com = get_value ( j , 'ndcId' , convert = str ) return Msg . _make ( j )
Returns a Msg containing the information from the websocket message
Update actual_com and actual_chat with the chat and community of the message received
Returns a Msg containing the information from the websocket message Update actual_com and actual_chat with the chat and community of the message received
"""
        Returns a Msg containing the information from the websocket message
        
        Update actual_com and actual_chat with the chat and community of the message received
        """
self
j
Dict[str, Any]