added daun submodule
This commit is contained in:
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
[submodule "client/daun"]
|
||||||
|
path = client/daun
|
||||||
|
url = https://github.com/BarsTiger/daun
|
||||||
1
client/daun
Submodule
1
client/daun
Submodule
Submodule client/daun added at 5b8a0247a4
@@ -1 +1,28 @@
|
|||||||
from env import *
|
from env import *
|
||||||
|
import pusher
|
||||||
|
import pysher
|
||||||
|
|
||||||
|
sender = pusher.Pusher(
|
||||||
|
app_id=app_id,
|
||||||
|
key=key,
|
||||||
|
secret=secret,
|
||||||
|
cluster=cluster,
|
||||||
|
ssl=True
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
def connect_handler(*args):
|
||||||
|
print("Connected to server")
|
||||||
|
channel = receiver.subscribe('test-doubler-sender')
|
||||||
|
print("id=", channel)
|
||||||
|
channel.bind('doubler', on_doubler)
|
||||||
|
|
||||||
|
|
||||||
|
receiver = pysher.Pusher(key=key, cluster=cluster)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
print("daunRat by ANONYMUSSSS")
|
||||||
|
receiver.connection.bind('pusher:connection_established', connect_handler)
|
||||||
|
receiver.connect()
|
||||||
|
while True:
|
||||||
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user