Commit 8cb0f313 authored by John Red Medrano's avatar John Red Medrano

{dev bugfix} fixing pusher

parent 3ca085f0
......@@ -11,7 +11,7 @@ from rest_framework import status
from rest_framework import serializers
import copy
import json
import pusher
from pusher import Pusher
import os
import configparser
......@@ -31,17 +31,15 @@ cms_notification = config['SETTINGS']['cms_notification']
def rms_websocket(my_channel, my_event, msg):
pusher_client = pusher.Pusher(
pusher_client = Pusher(
app_id=app_id,
key=key,
secret=secret,
cluster=cluster,
ssl=True
cluster=cluster
)
pusher_client.trigger(
my_channel, my_event, msg
# 'my-channel', 'my-event', {'message': 'hello world'}
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment