Commit 9c0989255c6389354e7a734b3501dca7073196be
1 parent
6fb5eabb
add host live-api
Showing
2 changed files
with
2 additions
and
2 deletions
src/live/js/student.js
| 1 | 1 | $(function() { |
| 2 | 2 | var teacherId = document.getElementById('teacher'); |
| 3 | 3 | var studentId = document.getElementById('student'); |
| 4 | - var socket = io('http://127.0.0.1:3306'); | |
| 4 | + var socket = io('http://live-api.com:3306'); | |
| 5 | 5 | |
| 6 | 6 | var teacher = CodeMirror.fromTextArea(teacherId, { |
| 7 | 7 | value: '输入HTML代码', | ... | ... |
src/live/js/teacher.js