capo_grecoC
Denoβ€’2y agoβ€’
12 replies
capo_greco

Can I add properties to a websocket object?

console.dir (socket.id)
console.dir (socket)

Object.assign (this.control.id, socket.id)

I am adding an id object to the sockets to help keep track of them, but something is giving rise to this behaviour, which doesn't seem to make sense
Screenshot_2024-01-19_at_12.45.25_pm.png
Was this page helpful?