1634 jsonStr = data.decode("utf-8", "backslashreplace") |
1634 jsonStr = data.decode("utf-8", "backslashreplace") |
1635 |
1635 |
1636 logging.getLogger(__name__).debug("<Debug-Server> %s", jsonStr) |
1636 logging.getLogger(__name__).debug("<Debug-Server> %s", jsonStr) |
1637 ##print("Server: ", jsonStr) ## debug # __IGNORE_WARNING_M891__ |
1637 ##print("Server: ", jsonStr) ## debug # __IGNORE_WARNING_M891__ |
1638 |
1638 |
1639 self.handleJsonCommand(jsonStr, sock) |
1639 if jsonStr: |
|
1640 self.handleJsonCommand(jsonStr, sock) |
1640 |
1641 |
1641 def handleJsonCommand(self, jsonStr, sock): |
1642 def handleJsonCommand(self, jsonStr, sock): |
1642 """ |
1643 """ |
1643 Public method to handle a command or response serialized as a |
1644 Public method to handle a command or response serialized as a |
1644 JSON string. |
1645 JSON string. |