Merge branch 'develop'
This commit is contained in:
@ -1,4 +1,6 @@
|
||||
FROM debian:stretch-slim
|
||||
FROM debian:buster-slim
|
||||
|
||||
COPY . /iris
|
||||
|
||||
RUN set -ex \
|
||||
# Official Mopidy install for Debian/Ubuntu along with some extensions
|
||||
@ -13,7 +15,9 @@ RUN set -ex \
|
||||
gstreamer1.0-plugins-bad \
|
||||
python-crypto \
|
||||
python-pykka \
|
||||
python-tornado \
|
||||
git \
|
||||
nano \
|
||||
&& curl -L https://apt.mopidy.com/mopidy.gpg | apt-key add - \
|
||||
&& curl -L https://apt.mopidy.com/mopidy.list -o /etc/apt/sources.list.d/mopidy.list \
|
||||
&& apt-get update \
|
||||
|
||||
@ -16,20 +16,6 @@ class WebsocketHandler(tornado.websocket.WebSocketHandler):
|
||||
|
||||
def check_origin(self, origin):
|
||||
return True
|
||||
|
||||
def select_subprotocol(self, subprotocols):
|
||||
|
||||
# select one of our subprotocol elements and return it. This confirms the connection has been accepted.
|
||||
protocols = mem.iris.digest_protocol(subprotocols)
|
||||
|
||||
# if we've auto-generated some ids, the provided subprotocols was a string, so just return it right back
|
||||
# this allows a connection to be completed
|
||||
if protocols['generated']:
|
||||
return subprotocols[0]
|
||||
|
||||
# otherwise, just return one of the supplied subprotocols
|
||||
else:
|
||||
return protocols['client_id']
|
||||
|
||||
def open(self):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user