I am trying to use ratchet to reflect the changes made to my database in real time. I used the pusher application code ( http://socketo.me/docs/push ). But I get an error in this.
At the time of opening the client page:
Uncaught ReferenceError: module is not defined when.js:900 (anonymous function) when.js:900 (anonymous function) when.js:15 (anonymous function) when.js:900
After that I typed: conn.subscribe ('topic'); // This is a subscription to the topic.
Now, when I make changes to this topic, an error appears in which the changes will be displayed.
Error 2:
Uncaught TypeError: undefined is not a function [VM] autobahn.min.js (124):66 (anonymous function) [VM] autobahn.min.js (124):66 c._websocket.onmessage [VM] autobahn.min.js (124):66
Any help?
source share