const socket = io.connect(url, { reconnection: false })
socket.on('update', data => console.log(data))
socket.on('connect_error', err => handleErrors(err))
socket.on('connect_failed', err => handleErrors(err))
socket.on('disconnect', err => handleErrors(err))
'FE > NodeJS' 카테고리의 다른 글
[ NodeJS ] PDF generator (0) | 2023.02.10 |
---|---|
[ NVM ] set default version (0) | 2022.07.24 |
[ NODE ] PDF to JPG (0) | 2022.07.13 |
[ NODE ] PDF to JPG (0) | 2022.07.07 |
[ NODE ] PassportJS Use multiple local Strategies (0) | 2022.06.15 |