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 channels.routing import ProtocolTypeRouter, URLRouter
|
|
|
|
from channels.auth import AuthMiddlewareStack
|
|
|
|
from program.consumers import ScheduleConsumer
|
2017-04-15 17:35:18 +00:00
|
|
|
|
|
|
|
|
2018-04-03 18:52:39 +00:00
|
|
|
application = ProtocolTypeRouter({
|
|
|
|
"websocket": AuthMiddlewareStack(
|
|
|
|
URLRouter([
|
|
|
|
url(r"^schedule/", ScheduleConsumer)
|
|
|
|
])
|
|
|
|
)
|
|
|
|
})
|