Changeset View
Changeset View
Standalone View
Standalone View
lib/kolab_chat/web/channels/user_socket.ex
- This file was moved from web/channels/user_socket.ex.
defmodule KolabChat.UserSocket do | defmodule KolabChat.Web.UserSocket do | ||||
use Phoenix.Socket | use Phoenix.Socket | ||||
alias KolabChat.Database | alias KolabChat.Database | ||||
## Channels | ## Channels | ||||
channel "room:*", KolabChat.RoomChannel | channel "room:*", KolabChat.Web.RoomChannel | ||||
channel "system", KolabChat.SystemChannel | channel "system", KolabChat.Web.SystemChannel | ||||
## Transports | ## Transports | ||||
transport :websocket, Phoenix.Transports.WebSocket | transport :websocket, Phoenix.Transports.WebSocket | ||||
transport :longpoll, Phoenix.Transports.LongPoll | transport :longpoll, Phoenix.Transports.LongPoll | ||||
# Socket params are passed from the client and can | # Socket params are passed from the client and can | ||||
# be used to verify and authenticate a user. After | # be used to verify and authenticate a user. After | ||||
# verification, you can put default assigns into | # verification, you can put default assigns into | ||||
Show All 25 Lines |