Closed bastilian closed 1 year ago
In order to use websockets, we will need to configure a server to run with the express adapter for remix.
A example basic server can be found/copied from here: https://github.com/bastilian/poard/pull/3/files#diff-a4c65ede64197e1a112899a68bf994485b889c4b143198bac4af53425b38406f
There is also the change of the npm run dev scripts to run node ./server.js instead of remix:run:dev above the mentioned server.js file.
node ./server.js
remix:run:dev
server.js
In order to use websockets, we will need to configure a server to run with the express adapter for remix.
A example basic server can be found/copied from here: https://github.com/bastilian/poard/pull/3/files#diff-a4c65ede64197e1a112899a68bf994485b889c4b143198bac4af53425b38406f
There is also the change of the npm run dev scripts to run
node ./server.js
instead ofremix:run:dev
above the mentionedserver.js
file.