Commit e3c0176c0af2e5619af71a958e0fb75bad18c58e

Authored by ykxie
1 parent d3cfbaa5

fix socket

Showing 1 changed file with 2 additions and 2 deletions
server/app.js
@@ -10,9 +10,9 @@ var content; @@ -10,9 +10,9 @@ var content;
10 10
11 io.on('connection', function(socket) { 11 io.on('connection', function(socket) {
12 12
13 - socket.on('join', function(username){ 13 + // socket.on('join', function(username){
14 14
15 - }) 15 + // })
16 16
17 // 进入房间后同步老师端内容 17 // 进入房间后同步老师端内容
18 io.emit('programming.content', content || ""); 18 io.emit('programming.content', content || "");