Working error handler

This commit is contained in:
AlexKvazos
2015-04-28 11:39:31 -05:00
parent 793fe3e162
commit 7e62e5dd79
5 changed files with 21 additions and 2 deletions
+4
View File
@@ -6,6 +6,10 @@ module.exports = function($scope, socket) {
$scope.chat = '';
if (window.location.hostname === 'chat.alexkvazos.com') {
socket.emit('chat', { message: 'Connected via web chat client / chat.alexkvazos.me.' });
}
$scope.send = function() {
if ($scope.chat.trim().length > 0) {
+4
View File
@@ -27,4 +27,8 @@ module.exports = function($scope, socket) {
});
});
$scope.disconnect = function() {
socket.emit('bot:disconnect', true);
};
};