Search code examples
sslwebsocketsocket.io

Does the secure WebSockets wss:// protocol encrypt client-to-server data?


From my understanding, HTTPS only encrypts data being sent from the server to the client and does NOT encrypt data being sent from the client to the server.

After about two hour of research, I can't find out if WSS also encrypts data being sent from the client to the server. I know that it encrypts the data being from the server to the client like HTTPS.

Any help is much appreciated. Thanks in advance!


Solution

  • Both HTTPS and WSS use SSL/TLS. SSL/TLS encrypts all data inside the connection, i.e. data from server to client and from client to server.