Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Socket.io websocket for status page. #75

Closed
wants to merge 6 commits into from

Conversation

RITIK-KHARYA
Copy link
Contributor

@RITIK-KHARYA RITIK-KHARYA commented Nov 28, 2024

Summary by CodeRabbit

Release Notes

  • New Features

    • Introduced WebSocket server functionality allowing real-time communication.
    • Added configuration files for coding styles and project settings, including .editorconfig, .prettierrc, and tsconfig.json.
  • Dependencies

    • Updated plura-www project to include socket.io-client for enhanced WebSocket capabilities.
  • Chores

    • Created .gitignore to streamline version control by excluding unnecessary files.
    • Established package.json for managing project scripts and dependencies.
    • Added wrangler.toml for project configuration and environment settings.
    • Introduced worker-configuration.d.ts for future environment-specific properties.

Copy link

vercel bot commented Nov 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
plura-status ❌ Failed (Inspect) Nov 29, 2024 10:51am

Copy link

vercel bot commented Nov 28, 2024

@RITIK-KHARYA is attempting to deploy a commit to the BlueFinZ Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

coderabbitai bot commented Nov 28, 2024

Caution

Review failed

The pull request is closed.

Walkthrough

The pull request introduces several new configuration files and a WebSocket server implementation in the apps/websockets directory. Key additions include .editorconfig, .gitignore, .prettierrc, package.json, tsconfig.json, wrangler.toml, and a TypeScript interface file. The WebSocket server functionality is defined in src/index.ts, allowing WebSocket connections and handling messages. Additionally, the package.json in apps/www is updated to include a new dependency for socket.io client.

Changes

File Path Change Summary
apps/websockets/.editorconfig New configuration file establishing coding style guidelines for the project.
apps/websockets/.gitignore New .gitignore file specifying files and directories to be ignored by Git.
apps/websockets/.prettierrc New Prettier configuration file specifying formatting options.
apps/websockets/package.json New package.json file created for the project with scripts and development dependencies.
apps/websockets/src/index.ts New file introducing WebSocket server functionality with request handling and message logging.
apps/websockets/tsconfig.json New TypeScript configuration file specifying compiler options for the project.
apps/websockets/worker-configuration.d.ts New TypeScript interface Env created for environment-specific properties.
apps/websockets/wrangler.toml New configuration file specifying project name, entry point, and environment variables.
apps/www/package.json Updated package.json to include new dependency "socket.io-client": "^4.7.4".

Possibly related PRs

  • feature/auth #33: Modifications to the API route handling, specifically the export structure of the OPTIONS method, relevant to the WebSocket server functionality introduced in the main PR.
  • auth #34: Similar to PR feature/auth #33, this PR also modifies the OPTIONS handler in the API route, related to the WebSocket server's handling of requests.
  • update auth to better-auth v1 #71: Updates the AccountSwitcher component to use session tokens instead of session IDs, which may relate to the overall authentication and session management in the WebSocket server context introduced in the main PR.

Poem

In the burrow where code does play,
New files sprout in a joyful array.
WebSockets hop, connections bloom,
With guidelines set, there's little gloom.
From .gitignore to package.json bright,
Our coding garden is a pure delight! 🐇✨


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

🧹 Outside diff range and nitpick comments (2)
apps/websockets/src/index.ts (2)

11-13: Add proper response headers and types

The text responses should include appropriate Content-Type headers and use consistent response formatting.

-			return new Response('Hello Hono!');
+			return new Response('Hello Hono!', {
+				headers: { 'Content-Type': 'text/plain' }
+			});

-		return new Response('Not Found', { status: 404 });
+		return new Response('Not Found', {
+			status: 404,
+			headers: { 'Content-Type': 'text/plain' }
+		});

Also applies to: 15-15


25-32: Implement message validation and rate limiting

The current message handling implementation needs several improvements for production readiness:

  1. No message validation or sanitization
  2. No rate limiting
  3. No message size limits
  4. Excessive logging in production

Consider implementing:

  1. Message size limits
  2. Rate limiting per connection
  3. Message validation
  4. Structured logging with appropriate log levels
+	let messageCount = 0;
+	const MAX_MESSAGE_SIZE = 1024 * 16; // 16KB
+	const MAX_MESSAGES_PER_MINUTE = 100;
+	const lastMessageTime = Date.now();
+
 	ws.addEventListener('message', (event) => {
+		const now = Date.now();
+		if (now - lastMessageTime < 60000) { // 1 minute
+			messageCount++;
+			if (messageCount > MAX_MESSAGES_PER_MINUTE) {
+				ws.close(1008, 'Too many messages');
+				return;
+			}
+		} else {
+			messageCount = 1;
+		}
+
 		const message = event.data;
-		console.log('Message received:', message);
+		if (typeof message !== 'string' || message.length > MAX_MESSAGE_SIZE) {
+			ws.close(1009, 'Message too large or invalid');
+			return;
+		}
+
+		// Use structured logging
+		console.debug({
+			type: 'websocket_message',
+			length: message.length,
+			timestamp: now
+		});
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between dc3e5b5 and ebb30bc.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (9)
  • apps/websockets/.editorconfig (1 hunks)
  • apps/websockets/.gitignore (1 hunks)
  • apps/websockets/.prettierrc (1 hunks)
  • apps/websockets/package.json (1 hunks)
  • apps/websockets/src/index.ts (1 hunks)
  • apps/websockets/tsconfig.json (1 hunks)
  • apps/websockets/worker-configuration.d.ts (1 hunks)
  • apps/websockets/wrangler.toml (1 hunks)
  • apps/www/package.json (1 hunks)
✅ Files skipped from review due to trivial changes (6)
  • apps/websockets/.editorconfig
  • apps/websockets/.gitignore
  • apps/websockets/.prettierrc
  • apps/websockets/package.json
  • apps/websockets/tsconfig.json
  • apps/websockets/wrangler.toml
🧰 Additional context used
🪛 Biome (1.9.4)
apps/websockets/worker-configuration.d.ts

[error] 2-4: An empty interface is equivalent to {}.

Safe fix: Use a type alias instead.

(lint/suspicious/noEmptyInterface)

🔇 Additional comments (1)
apps/www/package.json (1)

47-47: Verify WebSocket implementation choice and version compatibility

A few architectural considerations:

  1. Next.js 15 includes built-in WebSocket support. Consider if using socket.io is necessary or if the built-in implementation would suffice.
  2. Ensure the socket.io-client version matches your server's socket.io version to prevent compatibility issues.

Let's verify the socket.io server version:

Comment on lines +5 to +9
if (url.pathname === '/socket.io/' && request.headers.get('Upgrade')?.toLowerCase() === 'websocket') {
const [client, server] = Object.values(new WebSocketPair());
handleWebSocket(server);
return new Response(null, { status: 101, webSocket: client });
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Enhance WebSocket security measures

The current WebSocket upgrade handling lacks important security checks:

  1. No origin validation
  2. No WebSocket protocol version verification
  3. Case-sensitive header checking
-		if (url.pathname === '/socket.io/' && request.headers.get('Upgrade')?.toLowerCase() === 'websocket') {
+		const upgradeHeader = request.headers.get('Upgrade');
+		const origin = request.headers.get('Origin');
+		const wsProtocol = request.headers.get('Sec-WebSocket-Protocol');
+		
+		if (url.pathname === '/socket.io/' && 
+			upgradeHeader?.toLowerCase() === 'websocket' &&
+			isAllowedOrigin(origin) &&
+			wsProtocol) {
+			
 			const [client, server] = Object.values(new WebSocketPair());
 			handleWebSocket(server);
-			return new Response(null, { status: 101, webSocket: client });
+			return new Response(null, {
+				status: 101,
+				webSocket: client,
+				headers: {
+					'Sec-WebSocket-Protocol': wsProtocol
+				}
+			});
 		}

Committable suggestion skipped: line range outside the PR's diff.

Comment on lines +1 to +43
export default {
async fetch(request: Request, ctx: ExecutionContext): Promise<Response> {
const url = new URL(request.url);

if (url.pathname === '/socket.io/' && request.headers.get('Upgrade')?.toLowerCase() === 'websocket') {
const [client, server] = Object.values(new WebSocketPair());
handleWebSocket(server);
return new Response(null, { status: 101, webSocket: client });
}

if (url.pathname === '/') {
return new Response('Hello Hono!');
}

return new Response('Not Found', { status: 404 });
},
};

/**
* @param {WebSocket} ws
*/
function handleWebSocket(ws: WebSocket) {
ws.accept();

ws.addEventListener('message', (event) => {
const message = event.data;
console.log('Message received:', message);

if (message === 'hello') {
ws.send('Hello from Cloudflare Worker!');
}
});

ws.addEventListener('close', () => {
console.log('Client disconnected');
});

ws.addEventListener('error', (err) => {
console.error('WebSocket error:', err);
});

ws.send('WebSocket connection established!');
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codebase verification

Socket.IO dependency exists but implementation is incompatible

The current implementation only handles raw WebSocket connections despite having Socket.IO client v4.8.1 as a dependency. The code needs significant changes to support Socket.IO protocol:

  • The current endpoint at /socket.io/ only handles basic WebSocket upgrades without Socket.IO's:
    • Handshake protocol
    • Packet encoding/decoding
    • Namespace handling
    • Room management
    • Acknowledgments
    • Transport fallbacks

Consider either:

  1. Implementing full Socket.IO server protocol
  2. Switching to raw WebSocket client instead of Socket.IO client
🔗 Analysis chain

Verify Socket.IO protocol compatibility

The current WebSocket implementation appears to be a raw WebSocket server, but the PR mentions Socket.IO client integration. Socket.IO requires specific protocol handling that isn't implemented here.

Let's verify the Socket.IO client version and requirements:


Let me gather more information about Socket.IO usage in the codebase.

This will help us understand how Socket.IO is being used in the frontend and if there are any Socket.IO-specific configurations in the websockets service.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check Socket.IO client version in www app
if [ -f "apps/www/package.json" ]; then
    echo "Socket.IO client version:"
    cat apps/www/package.json | jq '.dependencies["socket.io-client"]'
fi

# Search for Socket.IO usage patterns
echo "Searching for Socket.IO usage patterns:"
rg -l "socket.io-client" apps/www/

Length of output: 319


Script:

#!/bin/bash
# Search for actual Socket.IO client usage in www app
echo "Searching for Socket.IO client imports and usage:"
rg -A 5 "from ['|\"]socket\.io-client" apps/www/

# Search for any Socket.IO protocol handlers or configurations
echo -e "\nSearching for Socket.IO protocol configurations:"
rg -A 5 "socket\.io|socketio" apps/websockets/

Length of output: 765

Comment on lines +34 to +43
ws.addEventListener('close', () => {
console.log('Client disconnected');
});

ws.addEventListener('error', (err) => {
console.error('WebSocket error:', err);
});

ws.send('WebSocket connection established!');
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Enhance connection management and error handling

The current implementation lacks several important WebSocket connection management features:

  1. No heartbeat mechanism to detect stale connections
  2. Basic error handling without proper error classification
  3. No cleanup of resources on connection close

Consider implementing:

  1. Heartbeat mechanism
  2. Proper error classification and handling
  3. Resource cleanup
+	let heartbeatInterval: number;
+	const HEARTBEAT_INTERVAL = 30000; // 30 seconds
+
+	// Setup heartbeat
+	heartbeatInterval = setInterval(() => {
+		if (ws.readyState === WebSocket.OPEN) {
+			ws.send(JSON.stringify({ type: 'ping' }));
+		}
+	}, HEARTBEAT_INTERVAL);
+
 	ws.addEventListener('close', () => {
-		console.log('Client disconnected');
+		clearInterval(heartbeatInterval);
+		// Cleanup any other resources
+		console.info({
+			type: 'websocket_close',
+			timestamp: Date.now()
+		});
 	});
 
 	ws.addEventListener('error', (err) => {
-		console.error('WebSocket error:', err);
+		const errorInfo = {
+			type: 'websocket_error',
+			timestamp: Date.now(),
+			code: err instanceof Error ? err.name : 'unknown',
+			message: err instanceof Error ? err.message : 'Unknown error'
+		};
+		console.error(errorInfo);
+		
+		// Close connection on critical errors
+		if (ws.readyState === WebSocket.OPEN) {
+			ws.close(1011, 'Internal server error');
+		}
 	});
 
-	ws.send('WebSocket connection established!');
+	// Send initial connection message with protocol version
+	ws.send(JSON.stringify({
+		type: 'connection_established',
+		version: '1.0',
+		timestamp: Date.now()
+	}));
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
ws.addEventListener('close', () => {
console.log('Client disconnected');
});
ws.addEventListener('error', (err) => {
console.error('WebSocket error:', err);
});
ws.send('WebSocket connection established!');
}
let heartbeatInterval: number;
const HEARTBEAT_INTERVAL = 30000; // 30 seconds
// Setup heartbeat
heartbeatInterval = setInterval(() => {
if (ws.readyState === WebSocket.OPEN) {
ws.send(JSON.stringify({ type: 'ping' }));
}
}, HEARTBEAT_INTERVAL);
ws.addEventListener('close', () => {
clearInterval(heartbeatInterval);
// Cleanup any other resources
console.info({
type: 'websocket_close',
timestamp: Date.now()
});
});
ws.addEventListener('error', (err) => {
const errorInfo = {
type: 'websocket_error',
timestamp: Date.now(),
code: err instanceof Error ? err.name : 'unknown',
message: err instanceof Error ? err.message : 'Unknown error'
};
console.error(errorInfo);
// Close connection on critical errors
if (ws.readyState === WebSocket.OPEN) {
ws.close(1011, 'Internal server error');
}
});
// Send initial connection message with protocol version
ws.send(JSON.stringify({
type: 'connection_established',
version: '1.0',
timestamp: Date.now()
}));
}

@@ -44,6 +44,7 @@
"react-dom": "19.0.0-rc-02c0e824-20241028",
"react-hook-form": "^7.53.1",
"react-icons": "^5.3.0",
"socket.io-client": "^4.8.1",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Fix incorrect socket.io-client version number

The specified version 4.8.1 appears to be incorrect as this version doesn't exist in the npm registry. The latest stable version is 4.7.4.

Apply this diff to fix the version:

-    "socket.io-client": "^4.8.1",
+    "socket.io-client": "^4.7.4",
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"socket.io-client": "^4.8.1",
"socket.io-client": "^4.7.4",

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Outside diff range and nitpick comments (1)
apps/websockets/package.json (1)

2-2: Consider using a more descriptive package name.

The current name "cf" is too generic. Consider renaming it to something that better reflects its purpose as a WebSocket server, such as "plura-websocket-server" or "plura-ws".

-  "name": "cf",
+  "name": "plura-websocket-server",
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 189ae10 and 1e711e8.

📒 Files selected for processing (1)
  • apps/websockets/package.json (1 hunks)
🔇 Additional comments (1)
apps/websockets/package.json (1)

1-23: Verify WebSocket dependencies and configurations.

Let's verify if all necessary WebSocket-related configurations and dependencies are properly set up.

✅ Verification successful

WebSocket implementation and dependencies are properly configured

The codebase has all the necessary WebSocket configurations and dependencies in place:

  • Proper WebSocket types from @cloudflare/workers-types are being used
  • Correct implementation of WebSocket handling with all essential event listeners (message, close, error)
  • Appropriate WebSocket upgrade handling in the request path
  • Project is correctly named as "plura-websockets" in wrangler.toml
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check for WebSocket-related configurations and dependencies in the project

# Check if WebSocket types are used in the codebase
echo "Checking for WebSocket usage in TypeScript files..."
rg -t ts "WebSocket|ws:|wss:" 

# Check for WebSocket-related configurations in wrangler.toml
echo "Checking WebSocket configurations in wrangler.toml..."
cat wrangler.toml | grep -i "websocket"

# Check if there are any example WebSocket implementations we should reference
echo "Checking for WebSocket examples in documentation..."
fd -t f "README.md" | xargs rg -i "websocket"

Length of output: 926


Script:

#!/bin/bash
# Let's check for WebSocket-specific configurations and dependencies more thoroughly

# Check for any WebSocket-related configurations in any potential config files
echo "Checking for WebSocket configurations in the websockets app..."
fd -t f "config|toml|json" apps/websockets | xargs rg -i "websocket"

# Check the implementation details of the WebSocket handling
echo "Checking WebSocket implementation details..."
ast-grep --pattern 'function handleWebSocket($_) {
  $$$
}'

# Check for any WebSocket-related tests
echo "Checking for WebSocket tests..."
fd -t f "test|spec|vitest" apps/websockets | xargs rg -i "websocket"

# Check if there are any additional WebSocket-related types or interfaces
echo "Checking for WebSocket types and interfaces..."
ast-grep --pattern 'interface $_ extends WebSocket {
  $$$
}'

Length of output: 2656

Comment on lines +10 to +11
"lint": "next lint",
"lint:fix": "next lint --fix",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Fix incorrect linting configuration.

The lint scripts are using Next.js but next is not listed in the dependencies. Either:

  1. Add Next.js as a dev dependency, or
  2. Use ESLint directly since this is a Cloudflare Worker project.
-    "lint": "next lint",
-    "lint:fix": "next lint --fix",
+    "lint": "eslint .",
+    "lint:fix": "eslint . --fix",

Don't forget to add ESLint and its dependencies:

   "devDependencies": {
+    "eslint": "^8.0.0",
+    "eslint-config-prettier": "^9.0.0",
     // ... other dependencies
   }
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"lint": "next lint",
"lint:fix": "next lint --fix",
"lint": "eslint .",
"lint:fix": "eslint . --fix",

Comment on lines 16 to 22
"devDependencies": {
"@cloudflare/vitest-pool-workers": "^0.5.2",
"@cloudflare/workers-types": "^4.20241127.0",
"typescript": "^5.5.2",
"vitest": "2.0.5",
"wrangler": "^3.91.0"
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Review dependency management strategy.

  1. Consider adding metadata fields for better project documentation:
   "name": "plura-websocket-server",
   "version": "0.0.0",
   "private": true,
+  "description": "WebSocket server implementation for Plura",
+  "author": "RITIK-KHARYA",
+  "license": "UNLICENSED",
  1. Consider using exact versions (remove ^) for better reproducibility:
   "devDependencies": {
-    "@cloudflare/vitest-pool-workers": "^0.5.2",
-    "@cloudflare/workers-types": "^4.20241127.0",
-    "typescript": "^5.5.2",
-    "wrangler": "^3.91.0"
+    "@cloudflare/vitest-pool-workers": "0.5.2",
+    "@cloudflare/workers-types": "4.20241127.0",
+    "typescript": "5.5.2",
+    "wrangler": "3.91.0"
  1. Consider adding WebSocket-related types for better development experience:
   "devDependencies": {
+    "@types/ws": "8.5.10",
     // ... other dependencies
   }
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"devDependencies": {
"@cloudflare/vitest-pool-workers": "^0.5.2",
"@cloudflare/workers-types": "^4.20241127.0",
"typescript": "^5.5.2",
"vitest": "2.0.5",
"wrangler": "^3.91.0"
}
"devDependencies": {
"@cloudflare/vitest-pool-workers": "0.5.2",
"@cloudflare/workers-types": "4.20241127.0",
"@types/ws": "8.5.10",
"typescript": "5.5.2",
"vitest": "2.0.5",
"wrangler": "3.91.0"
}

@SkidGod4444 SkidGod4444 linked an issue Nov 28, 2024 that may be closed by this pull request
@SkidGod4444 SkidGod4444 added the enhancement New feature or request label Nov 28, 2024
@SkidGod4444 SkidGod4444 changed the title websocket status checking Socket.io websocket for status page. Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Socket.io api end point for status page.
2 participants