Handling Errors
Error format
Example error response
{
"message": "Unauthorized",
"timestamp": "2023-09-24T12:34:56.789Z"
}Example Error Handling
const socket = io('https://ws.one-record.fr/<namespace>', {
auth: {
access_token: 'wrong-token',
},
});
socket.on('error', (error) => {
console.error('Error received:', error);
});Last updated