Skip to content

Commit

Permalink
update websocket connection
Browse files Browse the repository at this point in the history
  • Loading branch information
adator85 committed Oct 6, 2024
1 parent c3187e8 commit 9bfe592
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions mods/mod_jsonrpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,21 @@ def __init_module(self) -> None:
self.__load_module_configuration()
# End of mandatory methods you can start your customization #

self.UnrealIrcdRpcLive: Live = Live(path_to_socket_file=self.Config.JSONRPC_PATH_TO_SOCKET_FILE,
callback_object_instance=self,
callback_method_name='callback_sent_to_irc'
)
# self.UnrealIrcdRpcLive: Live = Live(
# req_method='unixsocket',
# path_to_socket_file=self.Config.JSONRPC_PATH_TO_SOCKET_FILE,
# callback_object_instance=self,
# callback_method_name='callback_sent_to_irc'
# )

self.UnrealIrcdRpcLive: Live = Live(
req_method='websocket',
url=self.Config.JSONRPC_URL,
username=self.Config.JSONRPC_USER,
password=self.Config.JSONRPC_PASSWORD,
callback_object_instance=self,
callback_method_name='callback_sent_to_irc'
)

self.Rpc: Loader = Loader(
req_method=self.Config.JSONRPC_METHOD,
Expand Down

0 comments on commit 9bfe592

Please sign in to comment.