8000 Add websocket-server example by 0Shadow02 · Pull Request #168 · unikraft/catalog · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add websocket-server example #168

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

0Shadow02
Copy link

Description

This PR adds a simple WebSocket server example to the catalog. The example demonstrates socket communication fundamentals using a basic TCP server implementation.

Changes

  • Added a new websocket-server example with the following files:
    • websocket.c: Simple socket server implementation
    • Dockerfile: Builds the server
    • Kraftfile: Configuration for Unikraft runtime
    • README.md: Usage instructions and explanation

Testing

The example has been tested with:

  • kraft run --rm -p 8080:8080 --plat qemu --arch x86_64 .
  • Connection testing using curl and websocat

Additional Information

This example serves as a starting point for more complex WebSocket implementations and demonstrates basic network functionality in Unikraft.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0