Skip to content

Commit f33f7af

Browse files
authored
fix publish example (#161)
1 parent 7650646 commit f33f7af

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

examples/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
pnconf.subscribe_key = "demo"
66
pnconf.publish_key = "demo"
77
pnconf.enable_subscribe = False
8+
pnconf.user_id = "user_id"

examples/native_threads/publish.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
pubnub.set_stream_logger('pubnub', logging.DEBUG, stream=sys.stdout)
1616

17+
pnconf.enable_subscribe = True
18+
1719
pubnub = PubNub(pnconf)
1820

1921

0 commit comments

Comments
 (0)