Oleh 10 жил өмнө
parent
commit
b328c91c1f
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      README.md

+ 2 - 2
README.md

@@ -69,9 +69,9 @@ rws_socket_send_text(_socket, example_text);
 ```
 ##### Disconnect or delete websocket object
 Since socket can be connected and we need to send disconnect mesage, not just lazy close, need to wait and than delete object.
-Thats why just call ```rws_socket_disconnect```, its thread safe, and forget about this socket object.
+Thats why just call ```rws_socket_disconnect_and_release```, its thread safe, and forget about this socket object.
 ```c
-rws_socket_disconnect(_socket);
+rws_socket_disconnect_and_release(_socket);
 _socket = NULL;
 ```