Svelte.js Demo – WebSockets
In this video, we’ll go over how to use WebSocket with svelte using the REPL.
Svelte REPL:
https://svelte.dev/repl/29a5bdfb981f479fb387298aef1190a0?version=3.22.2
Websocket Github:
https://github.com/phptuts/node-relay-server
Ngrok:
https://ngrok.com/
Steps:
git clone https://github.com/phptuts/node-relay-server.git
cd node-relay-server
npm install
node app.js
Setup an account with ngrok.
npm install -g ngrok
ngrok authtoken “your auth token”
ngrok http 3000
Go into message-store.js file and replace it with your ngrok url
Comments are closed.