work on sockets
This commit is contained in:
parent
7baa7d5d5f
commit
e826bca19e
5 changed files with 38 additions and 28 deletions
|
|
@ -218,7 +218,7 @@ class Onionr:
|
|||
'getpasswd': self.printWebPassword,
|
||||
'get-passwd': self.printWebPassword,
|
||||
|
||||
'chat': self.onionrCore.chatInst.connect()
|
||||
'chat': self.startChat(),
|
||||
|
||||
'friend': self.friendCmd
|
||||
}
|
||||
|
|
@ -270,6 +270,11 @@ class Onionr:
|
|||
THIS SECTION HANDLES THE COMMANDS
|
||||
'''
|
||||
|
||||
def startChat(self):
|
||||
self.onionrCore.daemonQueueAdd()
|
||||
socketInfo = json.dumps({'peer': api.data['signer'], 'address': address, 'port': port, 'create': True, 'reason': reason})
|
||||
self.onionrCore.daemonQueueAdd('startSocket', socketInfo)
|
||||
|
||||
def getCommands(self):
|
||||
return self.cmds
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue