Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

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.