Open developerworks opened 8 years ago
import {Socket} from "phoenix"
changed to
import {Socket} from "deps/phoenix/web/static/js/phoenix"
let socket = new Socket("/ws")
changed to
let socket = new Socket("/socket")
Uncaught TypeError: socket.join is not a function
var registerClock = function registerClock(tz) {
// Uncaught TypeError: socket.join is not a function
socket.join("currenttime:" + tz, {}).receive("ignore", function () {
return console.log("auth error");
}).receive("ok", callback).after(10000, function () {
return console.log("Connection interruption");
});
};
I'm using timex
0.19.5
and phoenix1.0.2
my
mix.exs
file is: