Get WSX running in under 5 minutes
http://localhost:3000
(or http://localhost:8787
for Hono)wx-config
: Configures the WebSocket connectionwx-send
: Defines the handler name to call on the serverwx-target
: Specifies which element to update with the responsewsx.on("increment", ...)
handler:
WebSocket connection fails
wx-config
matches your server
configuration. Check the browser console for connection errors.Button clicks don't work
Updates aren't real-time
wsx.broadcast()
to update all
connected clients, not just returning a response.