server-socket-framework-jps
Advanced tools
Comparing version 1.0.9 to 1.1.0
@@ -8,1 +8,2 @@ export { InviteType, DataMessageType } from './socket/SocketTypes'; | ||
export { JobManager } from './job/JobManager'; | ||
export { CompositeJob } from './job/CompositeJob'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.JobManager = exports.JobStatus = exports.JobErrorPriority = exports.MessageQueueManager = exports.SocketManager = exports.DataMessageType = exports.InviteType = void 0; | ||
exports.CompositeJob = exports.JobManager = exports.JobStatus = exports.JobErrorPriority = exports.MessageQueueManager = exports.SocketManager = exports.DataMessageType = exports.InviteType = void 0; | ||
var SocketTypes_1 = require("./socket/SocketTypes"); | ||
@@ -16,2 +16,4 @@ Object.defineProperty(exports, "InviteType", { enumerable: true, get: function () { return SocketTypes_1.InviteType; } }); | ||
Object.defineProperty(exports, "JobManager", { enumerable: true, get: function () { return JobManager_1.JobManager; } }); | ||
var CompositeJob_1 = require("./job/CompositeJob"); | ||
Object.defineProperty(exports, "CompositeJob", { enumerable: true, get: function () { return CompositeJob_1.CompositeJob; } }); | ||
//# sourceMappingURL=index.js.map |
@@ -9,3 +9,4 @@ import { Job, jobCompleteCallback, JobConfig } from "./Job"; | ||
constructor(config: JobConfig, originDir: string, destDir: string, fileTypes: string[], removeFromOrigin?: boolean); | ||
getConfig(): JobConfig; | ||
executeJob(runId: string, cb: jobCompleteCallback): void; | ||
} |
@@ -18,2 +18,5 @@ "use strict"; | ||
} | ||
getConfig() { | ||
return this.config; | ||
} | ||
executeJob(runId, cb) { | ||
@@ -20,0 +23,0 @@ const originExists = fs_1.default.existsSync(this.originDir); |
@@ -28,2 +28,3 @@ export declare type JobConfig = { | ||
executeJob(runId: string, cb: jobCompleteCallback): void; | ||
getConfig(): JobConfig; | ||
} | ||
@@ -30,0 +31,0 @@ export interface JobListener { |
@@ -5,3 +5,3 @@ /// <reference types="node" /> | ||
import { ChatMessage, ChatRoom, ChatUser, DataMessage, InviteMessage, QueuedMessages } from "./SocketTypes"; | ||
import { Job, jobCompleteCallback } from "../job/Job"; | ||
import { Job, jobCompleteCallback, JobConfig } from "../job/Job"; | ||
export declare class SocketManager implements Job { | ||
@@ -17,2 +17,3 @@ private static _instance; | ||
connectToServer(httpServer: httpServer): void; | ||
getConfig(): JobConfig; | ||
listen(): void; | ||
@@ -19,0 +20,0 @@ sendDataMessage(message: DataMessage): void; |
@@ -69,2 +69,5 @@ "use strict"; | ||
} | ||
getConfig() { | ||
return this.config; | ||
} | ||
listen() { | ||
@@ -71,0 +74,0 @@ socketDebug('starting to listen for connections'); |
{ | ||
"name": "server-socket-framework-jps", | ||
"version": "1.0.9", | ||
"version": "1.1.0", | ||
"description": "A simple socket framework for persistent chat rooms and data messages", | ||
@@ -5,0 +5,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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
77991
25
1087