@zum/flash-client
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -23,8 +23,7 @@ import { Socket } from 'socket.io-client'; | ||
execute: (operationArgument: FlashOperationArgument) => Promise<void>; | ||
deleteSocket: () => void; | ||
disconnect: () => void; | ||
private initializeSocket; | ||
private setAuthorizationHeader; | ||
private reConnectOnError; | ||
private disconnect; | ||
} | ||
//# sourceMappingURL=flashSocket.d.ts.map |
@@ -42,4 +42,4 @@ "use strict"; | ||
}; | ||
this.deleteSocket = () => { | ||
this.disconnect(); | ||
this.disconnect = () => { | ||
FlashSocket.socket.disconnect(); | ||
}; | ||
@@ -52,3 +52,3 @@ this.initializeSocket = () => { | ||
}; | ||
const socket = socket_io_client_1.io(this.config.baseUrl, opts); | ||
const socket = socket_io_client_1.io('http://localhost:8081/', opts); | ||
this.reConnectOnError(socket); | ||
@@ -80,5 +80,2 @@ return socket; | ||
}; | ||
this.disconnect = () => { | ||
FlashSocket.socket.disconnect(); | ||
}; | ||
if (!FlashSocket.socket) { | ||
@@ -85,0 +82,0 @@ FlashSocket.socket = this.initializeSocket(); |
export * from './connect/types'; | ||
export * from './sdk/api/ride'; | ||
export { initializeFlash } from './sdk/init/initializer'; | ||
export { initializeFlash, disconnectFlash } from './sdk/init/initializer'; | ||
export { FlashTopic } from './sdk/topic/topicTypes'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -10,4 +10,5 @@ "use strict"; | ||
exports.initializeFlash = initializer_1.initializeFlash; | ||
exports.disconnectFlash = initializer_1.disconnectFlash; | ||
var topicTypes_1 = require("./sdk/topic/topicTypes"); | ||
exports.FlashTopic = topicTypes_1.FlashTopic; | ||
//# sourceMappingURL=index.js.map |
@@ -5,2 +5,3 @@ import { SubscriptionManager } from '../../connect/subscriptionManager'; | ||
export declare const initializeFlash: (config: FlashConfig) => void; | ||
export declare const disconnectFlash: () => void; | ||
//# sourceMappingURL=initializer.d.ts.map |
@@ -23,2 +23,5 @@ "use strict"; | ||
}; | ||
exports.disconnectFlash = () => { | ||
flashSocket === null || flashSocket === void 0 ? void 0 : flashSocket.disconnect(); | ||
}; | ||
//# sourceMappingURL=initializer.js.map |
@@ -55,4 +55,4 @@ import { io as socketIO, Socket } from 'socket.io-client'; | ||
public deleteSocket = (): void => { | ||
this.disconnect(); | ||
public disconnect = (): void => { | ||
FlashSocket.socket.disconnect(); | ||
}; | ||
@@ -66,3 +66,3 @@ | ||
}; | ||
const socket = socketIO(this.config.baseUrl, opts); | ||
const socket = socketIO('http://localhost:8081/', opts); | ||
this.reConnectOnError(socket); | ||
@@ -95,6 +95,2 @@ return socket; | ||
}; | ||
private disconnect = (): void => { | ||
FlashSocket.socket.disconnect(); | ||
}; | ||
} |
export * from './connect/types'; | ||
export * from './sdk/api/ride'; | ||
export { initializeFlash } from './sdk/init/initializer'; | ||
export { disconnectFlash, initializeFlash } from './sdk/init/initializer'; | ||
export { FlashTopic } from './sdk/topic/topicTypes'; |
@@ -24,1 +24,5 @@ import { FlashSocket } from '../../connect/flashSocket'; | ||
}; | ||
export const disconnectFlash = (): void => { | ||
flashSocket?.disconnect(); | ||
}; |
{ | ||
"name": "@zum/flash-client", | ||
"version": "0.0.4", | ||
"description": "Client for talking to Zum flash server", | ||
"version": "0.0.5", | ||
"description": "Client for connecting to Zum Flash server", | ||
"license": "UNLICENSED", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/ridezum/backend.git" | ||
}, | ||
"author": "zum", | ||
@@ -6,0 +11,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
581651
879
0
1