Skip to content

Create Bun WebSocket server #22

Description

@superposition

Description

Build the real-time data server using Bun.

Tasks

  • Create packages/server/ directory
  • Set up Bun.serve with WebSocket upgrade
  • Implement binary frame protocol from src/ipc/protocol.ts
  • Handle client connections/disconnections
  • Implement message broadcasting
  • Add connection heartbeat (ping/pong)
  • Add basic rate limiting
  • Handle authentication (optional API key)

Reference

  • src/ipc/protocol.ts - existing message types
  • src/ipc/frame.ts - binary frame encoding

Acceptance Criteria

  • Server accepts WebSocket connections
  • Can send/receive binary frames
  • Handles multiple clients

Labels

web-app, backend, server

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions