Commit 9bb253e5 authored by Jens-Christian Fischer's avatar Jens-Christian Fischer
Browse files

Really send to the correct channel

parent 93ddc2df
......@@ -3,7 +3,7 @@ defmodule Grains.Mixfile do
def project do
[app: :grains,
version: "0.0.44",
version: "0.0.45",
elixir: "~> 1.2",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
......
......@@ -20,7 +20,7 @@ defmodule Grains.AccelerationChannel do
z: z
} )
Grains.Endpoint.broadcast "visuals", "acceleration", %{user: uuid, force: z}
Grains.Endpoint.broadcast "visuals:data", "acceleration", %{user: uuid, force: z}
{:reply, :ok, socket}
......
......@@ -28,7 +28,7 @@ defmodule Grains.OrientationChannel do
}
)
Grains.Endpoint.broadcast "visuals", "velocity", %{user: uuid, dx: pitch, dy: roll}
Grains.Endpoint.broadcast "visuals:data", "velocity", %{user: uuid, dx: pitch, dy: roll}
# Grains.Endpoint.broadcast("osc", "orientation", %{user: socket.assigns.user_uuid,
# pitch: pitch,
......
Supports Markdown
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