added test and my name

This commit is contained in:
Stefan Erichsen
2018-02-08 16:00:55 +01:00
parent 40fbcc8c28
commit 81e9cfe692
2 changed files with 6 additions and 2 deletions
+1 -2
View File
@@ -1,6 +1,6 @@
// Type definitions for stompjs 2.3
// Project: https://github.com/jmesnil/stomp-websocket
// Definitions by: Jimi Charalampidis <https://github.com/jimic>
// Definitions by: Jimi Charalampidis <https://github.com/jimic>, Stefan Erichsen <https://github.com/Dr4k4n>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
@@ -13,7 +13,6 @@ export const VERSIONS: {
};
export class Client {
connected: boolean;
counter: number;
heartbeat: {
+5
View File
@@ -43,6 +43,11 @@ client.connect('user', 'pass', () => { }, (error) => { });
client.connect('user', 'pass', () => { }, (error) => { }, 'host');
client.connect('user', 'pass', (frame) => { }, (error) => { });
client.connect('user', 'pass', (frame) => { }, (error) => { }, 'host');
client.connect('user', 'pass', (frame) => {
if (!!frame) {
frame.command;
}
}, (error) => { }, 'host');
client.disconnect(() => { });
client.disconnect(() => { }, {});