@@ -42,11 +42,11 @@ function newcon(address) {
|
||||
}
|
||||
socket = io(address, {
|
||||
path: '/ws',
|
||||
transports: ['websocket']
|
||||
transports: ['websocket'],
|
||||
autoConnect: false,
|
||||
});
|
||||
socket.on('connect', function() {
|
||||
term.writeln('connect')
|
||||
socket.emit('webclient', {})
|
||||
});
|
||||
socket.on('message', function(data) {
|
||||
if (typeof data === "string") {
|
||||
|
||||
Reference in New Issue
Block a user