svelte-expres-ws-example Svelte Themes

Svelte Expres Ws Example

WebSocket connection and communication with express.js end svelte

svelte-expres-ws-example

WebSocket connection and communication with express.js end svelte

client send event to server in every second. Server store and increase the event count. Also publish the event count. Client only show the event count from ws-server

Server Side

Run "npm install" command in svelte-expres-ws-example\server folder

When finished package install, you can run "node server.js" command in same directory.

You can see localhost:3000 is available.

Frontend Side

Run "npm install" command in svelte-expres-ws-example\client folder

When finished package install, you can run "npm run dev" command in same directory.

You can see the page in localhost:5173.

Top categories

svelte logo

Need a Svelte website built?

Hire a professional Svelte developer today.
Loading Svelte Themes