Skip to content

Commit

Permalink
Minor improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
JimiC committed Feb 10, 2017
1 parent 707ade2 commit 7c7b3b7
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 11 deletions.
16 changes: 10 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,37 +1,41 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.
.npm

# compiled output
/dist
/tmp

# dependencies
/node_modules
/bower_components

# IDEs and editors
/.idea
/.vscode
.project
.classpath
.c9/
*.launch
.settings/

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
debug.*

# misc
/.sass-cache
/connect.lock
/coverage/*
/libpeerconnection.log
npm-debug.log
npm-debug.*
testem.log
/typings

# e2e
/e2e/*.js
/e2e/*.map

#System Files
# System Files
.DS_Store
Thumbs.db

1 change: 1 addition & 0 deletions angular-cli.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"root": "src",
"outDir": "dist",
"assets": [
"api",
"assets",
"favicon.ico"
],
Expand Down
2 changes: 1 addition & 1 deletion e2e/app.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe('ng2-stompjs-demo App', function() {
page = new Ng2StompjsDemoPage();
});

it('should display message saying Angular 2 STOMP.js Demo', () => {
it('should display message saying \'Angular 2 STOMP.js Demo\'', () => {
page.navigateTo();
expect(page.getHeaderText()).toEqual('Angular 2 STOMP.js Demo');
});
Expand Down
1 change: 1 addition & 0 deletions src/app/components/rawdata/rawdata.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* tslint:disable:no-unused-variable */

import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { DebugElement } from '@angular/core';
Expand Down
1 change: 1 addition & 0 deletions src/app/components/status/status.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* tslint:disable:no-unused-variable */

import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { DebugElement } from '@angular/core';
Expand Down
4 changes: 2 additions & 2 deletions src/app/services/stomp/stomp.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export class STOMPService {
}

// Disconnect if connected. Callback will set CLOSED state
if (this.client.connected) {
if (this.client && this.client.connected) {
this.client.disconnect(
() => this.state.next(STOMPState.CLOSED)
);
Expand All @@ -141,7 +141,7 @@ export class STOMPService {


/** Send a message to all topics */
public publish(message: string): void {
public publish(message?: string): void {

for (const t of this.config.publish) {
this.client.send(t, {}, message);
Expand Down
3 changes: 1 addition & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@

<head>
<meta charset="utf-8">
<title>Ng2StompjsDemo</title>
<title>Angular 2 Stompjs Demo</title>
<base href="/">

<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">

</head>

<body>
Expand Down

0 comments on commit 7c7b3b7

Please sign in to comment.