I am writing a messaging client that should connect to a server using websocket secure(WSS). When the client initiates nopoll connection, openssl returns SSL_ERROR_SYSCALL.
The server also supports https-sse protocol. So, to confirm that the x.509 certificates used are correct, I tried connecting to the server using https-sse. This works as expected.
Since the server uses the same certificates to authenticate clients connecting over wss or https, I don't understand why wss connection would fail with SSL_ERROR_SYSCALL when https connection can work with the same server.
Server ip address and port number are the same of WSS and HTTPS. They differ only in the schema. wss://: and https://: Client supporting both wss and https is written in C language as it is intended to be an existing product running code written in C.