|
|
@ -1,3 +1,5 @@
|
|
|
|
|
|
|
|
#!/usr/bin/env node
|
|
|
|
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
|
|
const errorReporter = require("./src/error-reporting");
|
|
|
|
const errorReporter = require("./src/error-reporting");
|
|
|
@ -57,7 +59,7 @@ app.ws("/stream", (ws, req) => {
|
|
|
|
if (message.all === true) {
|
|
|
|
if (message.all === true) {
|
|
|
|
client.send({
|
|
|
|
client.send({
|
|
|
|
type: "backlog",
|
|
|
|
type: "backlog",
|
|
|
|
results: scraper.pasteStore.all(message.since)
|
|
|
|
results: scraper.pasteStore.all()
|
|
|
|
});
|
|
|
|
});
|
|
|
|
} else if (typeof message.since === "number") {
|
|
|
|
} else if (typeof message.since === "number") {
|
|
|
|
client.send({
|
|
|
|
client.send({
|
|
|
|