Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
R
red-ci-cd
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
red-group-test
red-ci-cd
Commits
8cb0f313
Commit
8cb0f313
authored
Mar 03, 2020
by
John Red Medrano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
{dev bugfix} fixing pusher
parent
3ca085f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
app/applicationlayer/utils.py
app/applicationlayer/utils.py
+3
-5
No files found.
app/applicationlayer/utils.py
View file @
8cb0f313
...
@@ -11,7 +11,7 @@ from rest_framework import status
...
@@ -11,7 +11,7 @@ from rest_framework import status
from
rest_framework
import
serializers
from
rest_framework
import
serializers
import
copy
import
copy
import
json
import
json
import
p
usher
from
pusher
import
P
usher
import
os
import
os
import
configparser
import
configparser
...
@@ -31,17 +31,15 @@ cms_notification = config['SETTINGS']['cms_notification']
...
@@ -31,17 +31,15 @@ cms_notification = config['SETTINGS']['cms_notification']
def
rms_websocket
(
my_channel
,
my_event
,
msg
):
def
rms_websocket
(
my_channel
,
my_event
,
msg
):
pusher_client
=
pusher
.
Pusher
(
pusher_client
=
Pusher
(
app_id
=
app_id
,
app_id
=
app_id
,
key
=
key
,
key
=
key
,
secret
=
secret
,
secret
=
secret
,
cluster
=
cluster
,
cluster
=
cluster
ssl
=
True
)
)
pusher_client
.
trigger
(
pusher_client
.
trigger
(
my_channel
,
my_event
,
msg
my_channel
,
my_event
,
msg
# 'my-channel', 'my-event', {'message': 'hello world'}
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment