FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
rabbitmqexample/webSocketPython/sendtest.py at master · malongge/rabbitmqexample · GitHub
malongge
/
rabbitmqexample
Public
forked from
Gsantomaggio/rabbitmqexample
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
rabbitmqexample
/
webSocketPython
/
sendtest.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
14 lines (12 loc) · 354 Bytes
Breadcrumbs
rabbitmqexample
/
webSocketPython
/
sendtest.py
Copy path
File metadata and controls
14 lines (12 loc) · 354 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env python
import
pika
import
logging
logging
.
basicConfig
()
connection
=
pika
.
BlockingConnection
()
print
'Connected:localhost'
channel
=
connection
.
channel
()
channel
.
queue_declare
(
queue
=
"my_queue"
)
channel
.
basic_publish
(
exchange
=
''
,
routing_key
=
'my_queue'
,
body
=
'Test Message'
)
connection
.
close
()
Back
|
FazBrowse Home
|
New Git URL