@@ -49,31 +49,29 @@ If you are using Python3, this package can help you to parse all json responses
4949            path_to_socket_file = ' /path/to/unrealircd/data/rpc.socket' 
5050        )
5151``` 
52- ### Live Connection (Local Only)  
52+ ### Live Connection using UnixSocket  (Local Only)  
5353``` python 
54-     from  unrealircd_rpc_py.Live import  Live 
54+     from  unrealircd_rpc_py.Live import  LiveUnixSocket 
5555    #  Live Connection (Local only) using unix socket
56-     LiveRpc =  Live(
57-         req_method = ' unixsocket' 
58-         path_to_socket_file = ' /path/to/unrealircd/data/rpc.socket' 
56+     LiveRpc =  LiveUnixSocket(
5957        callback_object_instance = Callback_class_instance,
60-         callback_method_name = ' your_method_name' 
58+         callback_method_name = ' your_method_name' 
59+         path_to_socket_file = ' /path/to/unrealircd/data/rpc.socket' 
6160    )
6261``` 
63- ### Live connection (Local or Remote)  
62+ ### Live connection using Websocket  (Local or Remote)  
6463``` python 
65-     from  unrealircd_rpc_py.Live import  Live
66-     #  Live Connection (Local Or Remote)
67-     liveRpc =  Live(
68-         req_method = ' websocket' 
64+     from  unrealircd_rpc_py.Live import  LiveWebsocket
65+     #  Live Connection (Local Or Remote) using websocket
66+     liveRpc =  LiveWebsocket(
67+         callback_object_instance = InitCallbackClass,
68+         callback_method_name = ' your_method_name' 
6969        url = ' https://your.irc.domaine.org:8600/api' 
7070        username = ' apiname' 
71-         password = ' apiPASSWORD' 
72-         callback_object_instance = InitCallbackClass,
73-         callback_method_name = ' your_method_name' 
71+         password = ' apiPASSWORD' 
7472    )
7573``` 
76- ## How to work with ( remotly)   
74+ ## How to work with remotly  
7775This package allows easy interfacing with UnrealIRCd through regular Python3 code, such as:
7876``` python 
7977    from  unrealircd_rpc_py.Loader import  Loader
@@ -169,18 +167,18 @@ This package allows easy interfacing with UnrealIRCd through regular Python3 cod
169167# Live Connection via unixsocket or websocket  
170168## How to work with (using Live unixsocket)  
171169``` python 
172-     from  unrealircd_rpc_py.Live import  Live 
170+     from  unrealircd_rpc_py.Live import  LiveUnixSocket 
173171
174172    #  This is un callback class that will recieve the response
175173    from  TestObject import  TestObject
176174
177175    InitCallbackClass =  TestObject()
178176
179177    #  The Callback method must always have 1 parameter as string
180-     liveRpc =  Live(req_method = ' unixsocket' 
181-         path_to_socket_file = ' /path/to/unrealircd/data/rpc.socket' 
178+     liveRpc =  LiveUnixSocket(
182179        callback_object_instance = InitCallbackClass,
183-         callback_method_name = ' your_method_name' 
180+         callback_method_name = ' your_method_name' 
181+         path_to_socket_file = ' /path/to/unrealircd/data/rpc.socket' 
184182    )
185183
186184    #  This method will run forever and will send to your callback method the response
@@ -194,20 +192,20 @@ This package allows easy interfacing with UnrealIRCd through regular Python3 cod
194192``` 
195193## How to work with (using Live websocket)  
196194``` python 
197-     from  unrealircd_rpc_py.Live import  Live 
195+     from  unrealircd_rpc_py.Live import  LiveWebsocket 
198196
199197    #  This is un callback class that will recieve the response
200198    from  TestObject import  TestObject
201199
202200    InitCallbackClass =  TestObject()
203201
204202    #  The Callback method must always have 1 parameter as string
205-     liveRpc =  Live(req_method = ' websocket' 
203+     liveRpc =  LiveWebsocket(
204+         callback_object_instance = InitCallbackClass,
205+         callback_method_name = ' your_method_name' 
206206        url = ' https://your.irc.domaine.org:8600/api' 
207207        username = ' apiname' 
208-         password = ' apiPASSWORD' 
209-         callback_object_instance = InitCallbackClass,
210-         callback_method_name = ' your_method_name' 
208+         password = ' apiPASSWORD' 
211209    )
212210
213211    #  This method will run forever and will send to your callback method the response
0 commit comments