I remember tring websockets before release, in draft10 I think, on PHP, it was ..almost working.
Anyway, if you want to learn about websocket why didn't you used vanilla JS? is easy nowdays, at least you would have learned how they are implemented, and then in a commercial project you would use a library like socket.io.
The program I work for teaches socket.io, so I thought it would be most value for me. Maybe a different week I will look into that.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.