Commit 27ad262b8feabb4e57d86d79b352db39fe026c2d
1 parent
39b93af6
debug host
Showing
2 changed files
with
4 additions
and
2 deletions
src/live/js/student.js
| 1 | $(function() { | 1 | $(function() { |
| 2 | var teacherId = document.getElementById('teacher'); | 2 | var teacherId = document.getElementById('teacher'); |
| 3 | var studentId = document.getElementById('student'); | 3 | var studentId = document.getElementById('student'); |
| 4 | - var socket = io('http://live-api:5000'); | 4 | + var socket = io('https://live-api:5000'); |
| 5 | + // var socket = io('http://live-api:5000'); | ||
| 5 | 6 | ||
| 6 | var teacher = CodeMirror.fromTextArea(teacherId, { | 7 | var teacher = CodeMirror.fromTextArea(teacherId, { |
| 7 | value: '输入HTML代码', | 8 | value: '输入HTML代码', |
src/live/js/teacher.js
| 1 | $(function(){ | 1 | $(function(){ |
| 2 | var teacherId = document.getElementById('teacher'); | 2 | var teacherId = document.getElementById('teacher'); |
| 3 | - var socket = io('http://live-api:5000'); | 3 | + var socket = io('https://live-api:5000'); |
| 4 | + // var socket = io('http://live-api:5000'); | ||
| 4 | 5 | ||
| 5 | // 初始化codemirror页面 | 6 | // 初始化codemirror页面 |
| 6 | var teacher = CodeMirror.fromTextArea(teacherId, { | 7 | var teacher = CodeMirror.fromTextArea(teacherId, { |