2020-02-12 12:10:41 +00:00
|
|
|
from channels.auth import AuthMiddlewareStack
|
|
|
|
from channels.routing import ProtocolTypeRouter, URLRouter
|
2018-04-03 18:52:39 +00:00
|
|
|
from django.conf.urls import url
|
2017-04-15 17:35:18 +00:00
|
|
|
|
2018-04-03 18:52:39 +00:00
|
|
|
from program.consumers import ScheduleConsumer
|
2017-04-15 17:35:18 +00:00
|
|
|
|
2019-06-16 12:32:24 +00:00
|
|
|
application = ProtocolTypeRouter(
|
|
|
|
{
|
|
|
|
"websocket": AuthMiddlewareStack(
|
|
|
|
URLRouter([url(r"^schedule/", ScheduleConsumer)])
|
|
|
|
)
|
|
|
|
}
|
|
|
|
)
|