0.1.0 • Published 2 years ago

@m2b/socket_client v0.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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.

0.1.0

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.21

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago