9 lines
158 B
JavaScript
9 lines
158 B
JavaScript
|
$(function () {
|
||
|
var socket = io();
|
||
|
$('form').submit(function(){
|
||
|
socket.emit('input', $('#m').val());
|
||
|
$('#m').val('');
|
||
|
return false;
|
||
|
});
|
||
|
});
|