0.1.0 • Published 2 years ago
@m2b/socket_client v0.1.0
Client for communicate with other app
Client send data through socket to local app on port 50007
Usage
Method createClient()
connects to local server on port 50007 and returns class Client.
Class Client
Contain socket instance and methods
Methods
- endConnection() - close connection with server
- sendText(text) - send text
- sendJobCount(num) - send number of jobs
- sendConvEnd() - send ping that conversation ended
Update 0.1.0
Added stop function. If pass dasha app to createClient - createClient(app)
- then with recv message 'stop' exit dasha programm.
If no app pass ignore stop message.