~thelinuxguy/openlp/angular-remote

« back to all changes in this revision

Viewing changes to openlp/core/api/websockets.py

  • Committer: Simon Hanna
  • Date: 2016-07-26 14:04:39 UTC
  • Revision ID: simon.hanna@serve-me.info-20160726140439-wd2tqjrghutx8k7b
Import openlp remote compiled files

Show diffs side-by-side

added added

removed removed

Lines of Context:
129
129
        if path == '/state':
130
130
            while True:
131
131
                current_poll = poller.poll()
 
132
                current_poll = str(current_poll, 'utf-8')
132
133
                if current_poll != previous_poll:
133
134
                    yield from request.send(current_poll)
134
135
                    previous_poll = current_poll
136
137
        elif path == '/live_changed':
137
138
            while True:
138
139
                main_poll = poller.main_poll()
 
140
                main_poll = str(main_poll, 'utf-8')
139
141
                if main_poll != previous_main_poll:
140
142
                    yield from request.send(main_poll)
141
143
                    previous_main_poll = main_poll