status => stats
This commit is contained in:
@@ -13,7 +13,7 @@ export async function publicWsRoutes(
|
|||||||
},
|
},
|
||||||
) {
|
) {
|
||||||
fastify.get(
|
fastify.get(
|
||||||
"/dpu/status/events",
|
"/dpu/stats/events",
|
||||||
{
|
{
|
||||||
schema: {
|
schema: {
|
||||||
description: "Register for WebSocket events",
|
description: "Register for WebSocket events",
|
||||||
@@ -25,7 +25,7 @@ export async function publicWsRoutes(
|
|||||||
(socket, _request) => {
|
(socket, _request) => {
|
||||||
wsService.addClient(socket);
|
wsService.addClient(socket);
|
||||||
socket.send(JSON.stringify({ type: "message", data: "Connected" }));
|
socket.send(JSON.stringify({ type: "message", data: "Connected" }));
|
||||||
hpService.sendFullInformationToSocket(socket)
|
hpService.sendFullInformationToSocket(socket);
|
||||||
logInfo(`Connection for client established`);
|
logInfo(`Connection for client established`);
|
||||||
|
|
||||||
socket.on("close", () => {
|
socket.on("close", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user