Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 585 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 585 Bytes

Sword SocketIO Application Example

This example demonstrates a real-time chat application using Sword's Socket.IO controllers on web. Clients can connect and send messages that are broadcasted to all connected clients.

Running the Example

  1. Navigate to this directory: cd examples/socketio
  2. Run the server: cargo run
  3. In another terminal, navigate to the client directory: cd client
  4. Install dependencies: pnpm install
  5. Run the client: pnpm dev

Open http://localhost:5173 in your browser to interact with the chat application. The server runs on port 8081.