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 ...@@ -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 pusher from pusher import Pusher
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'}
) )
......
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