(websocket, pth=None)
Handle the messages recieved by WebSocket (pth is not required but still\
returned by the 'websockets' library)
Handle the messages recieved by WebSocket (pth is not required but still\
returned by the 'websockets' library)
Handle the messages recieved by WebSocket ( pth is not required but still \ returned by the websockets library )
async def ws_handler(websocket, pth=None):  # pylint: disable=unused-argument
    """Handle the messages recieved by WebSocket (pth is not required but still\
returned by the 'websockets' library)"""
    try:
        async for message in websocket:
            try:
                await message_parse(rapidjson.loads(message), websocket)
            except:
                pass
    except websockets.exceptions.ConnectionClosed:
        pass
async def ws_handler ( websocket , pth = None ) : # pylint: disable=unused-argument try : async for message in websocket : try : await message_parse ( rapidjson . loads ( message ) , websocket ) except : pass except websockets . exceptions . ConnectionClosed : pass