Yes, TLS can be applied over http and websocket.