Closed n4beel closed 3 years ago
@n4beel, I see you are using telnet. react-native-tcp-socket
only provides a TCP socket API, any other protocol built on top of TCP must be implemented by the user. Take a look at telnet-client for NodeJS, you might be able to adapt it to work with this library.
Thanks for the response, you saved my time as I would have kept on trying to connect using this package.
@Rapsssito your library worked for me. I just needed to append CR + LF (\r\n) to the text I was sending and I got the response.
Description
I am using this package to communicate with a server. When I am using
write()
to send data to a server. I am not getting response in thedata
event. Whereas, when I am using telnet to communicate from the server through terminal I am getting the response.Steps to reproduce
code:
Current behavior
all events except data are working
Expected behavior
I should get data in the data event's callback
Screenshots Here is a screenshot of terminal, in which I am getting response.
Relevant information