Using websockets in Extensions?

Hi.

I was asking if we can use socket.io (https://socket.io/). From your answer I understand that yes, as long as I use TLS, is it right?