Cauldron3D.Net.Socket (Cauldron3D.Net v0.3.3)

Copy Markdown View Source

The socket browsers watching scenes connect through, with the channel Cauldron3D.Net.Channel defines.

defmodule MyGame.Web.SceneSocket do
  use Cauldron3D.Net.Socket, channel: MyGame.Web.SceneChannel
end

:topic is the channel's topic prefix (default "scene"). :verify, a {module, function} given the connect params and answering {:ok, assigns} or :error, decides who may connect; without it everyone may.