adding websocket code

This commit is contained in:
2024-09-18 00:18:39 -05:00
parent 5b551df104
commit b1297068a7
4 changed files with 106 additions and 4 deletions

View File

@@ -105,6 +105,10 @@ class LSPEndpointServer(Singleton):
def send_client_ipc_message(self, message: str = "Empty Data...") -> None:
try:
if self._conn_type == "socket":
if not os.path.exists(self._client_ipc_address):
logger.error(f"Socket: {self._client_ipc_address} doesn't exist. NOT sending message...")
return
conn = Client(address=self._client_ipc_address, family="AF_UNIX", authkey=self._client_ipc_authkey)
elif "unsecured" not in self._conn_type:
conn = Client((self._ipc_address, self._ipc_port), authkey=self._ipc_authkey)