fds
This commit is contained in:
parent
304b1379e4
commit
af34c765bc
3 changed files with 3 additions and 7 deletions
|
@ -15,7 +15,3 @@ socket.on('speak', function(json) {
|
|||
document.getElementsByClassName('chat-message')[0].innerHTML = json['text']
|
||||
document.getElementById('chat-text').append(document.getElementsByClassName('chat-line')[0].cloneNode(true))
|
||||
})
|
||||
|
||||
socket.on('connect', function() {
|
||||
socket.emit('join room', '1')
|
||||
})
|
|
@ -31,7 +31,7 @@ def speak(data, v):
|
|||
emit('speak', data)
|
||||
return '', 204
|
||||
|
||||
@sex.on('join room')
|
||||
@sex.on('connect')
|
||||
@auth_required
|
||||
def join_room(data, v):
|
||||
join_room('1')
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
</div>
|
||||
|
||||
<script src="/assets/js/socketio.js"></script>
|
||||
<script src="/assets/js/chat.js?v=9"></script>
|
||||
<script src="/assets/js/chat.js?v=10"></script>
|
||||
|
||||
<style>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue