Skip to content

Commit

Permalink
README updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
EgeBalci committed Apr 14, 2023
1 parent 64c53be commit a45a457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Go library for qsocket...
## Example
Usage is really simple, `qsocket.New()` function simply creates a new quantum socket with given secret, it includes all the functions of standard `net` sockets and also implements `io Read/Write`. After creating a socket you need to dial the QSRN network by calling `Dial*` functions. Simple example below...
```go
qsock := qsocket.New("my-secret", true); // Create a new QSocket with TLS fingerprint checking...
qsock := qsocket.New("my-secret"); // Create a new QSocket with TLS fingerprint checking...
qsock.Dial() // Dial using TLS and certificate fingerprint checking...
// OR
qsock.DialTCP() // Dial using TCP...
Expand Down

0 comments on commit a45a457

Please sign in to comment.