No export named Websocket (should import WebSocket instead); Socket URL doesn't work
Opened this issue · 1 comments
dancherb commented
Thanks for this package. A couple quick ones:
- The import Websocket in the readme.md looks like it should be WebSocket
- Before next.js, the URL I passed to the WebSocket component was:
const devMode = !process.env.NODE_ENV || process.env.NODE_ENV === 'development'
const url = devMode ? 'ws://localhost:3000' : 'wss://www.mywebsite.com'
This works when running locally, but doesn't seem to work when deployed - any ideas? Thanks!
syedmahmad commented