This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as Stomp from 'webstomp-client'; | |
| import * as WebSocket from 'ws' | |
| export class STOMP { | |
| public state: STOMPState; | |
| public messages: Stomp.Message; | |
| private _config: StompConfig; | |
| private _client: Stomp.Client; | |
| private _resolvePromise: { (...args: any[]): void }; | |
| private _connectCallBack: (mes: Stomp.Message) => any; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as Stomp from 'stompjs'; | |
| export class STOMPService { | |
| public state: STOMPState; | |
| public messages: Stomp.Message; | |
| private config: StompConfig; | |
| private client: Stomp.Client; | |
| private resolvePromise: { (...args: any[]): void }; | |
| private connectCallBack: (mes: Stomp.Message) => any; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as fs from 'fs'; | |
| import { EventEmitter } from 'events'; | |
| const speedTest = require('speedtest-net'); | |
| var wrap = (callback: Function) => { | |
| try { | |
| callback(); | |
| } catch (error) { | |
| console.log(error); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| declare module "dbus-native" { | |
| import * as net from "net"; | |
| import * as events from "events"; | |
| interface msg{ | |
| destination?:string ; | |
| path?:string ; | |
| 'interface'?:any ; | |
| member:string ; | |
| signature?:any; |
NewerOlder