Этот коммит содержится в:
=Corey Hulen
2016-02-11 09:58:04 -08:00
родитель abd5a3e0d7
Коммит 8a7535d7fe
2 изменённых файлов: 21 добавлений и 7 удалений

Просмотреть файл

@@ -32,6 +32,8 @@ class SocketStoreClass extends EventEmitter {
this.failCount = 0;
this.translations = this.getDefaultTranslations();
this.initialize();
}
@@ -174,6 +176,18 @@ class SocketStoreClass extends EventEmitter {
this.translations = messages;
}
getDefaultTranslations() {
return ({
socketError: 'Please check connection, Mattermost unreachable. If issue persists, ask administrator to check WebSocket port.',
someone: 'Someone',
posted: 'Posted',
uploadedImage: ' uploaded an image',
uploadedFile: ' uploaded a file',
something: ' did something new',
wrote: ' wrote: '
});
}
close() {
if (conn && conn.readyState === WebSocket.OPEN) {
conn.close();