public receive(maxBytes as Int = 4096) as String throws SSLException:
Receives up to maxBytes bytes interpreted as text.
| Parameter | Description |
|---|---|
maxBytes | Maximum number of bytes to read. |
Received text.
import klyn.net.ssl
socket = SSLSocket("example.com", 443)
print(socket.receive(512))
socket.close()