0 purchases
bqsp client
BQSP Client #
Dart client for the BQSP protocol.
Installation #
To use BQSP Client in your Flutter project, add the following dependency to your pubspec.yaml file:
dependencies:
bqsp_client: ^0.3.2
copied to clipboard
Then, run:
flutter pub get
copied to clipboard
Usage #
Create a BqspClient instance with the server host and port
final client = BqspClient(serverHost, serverPort);
copied to clipboard
Connect to the server
await client.connect();
copied to clipboard
Send a request with a type and a body
final response = await client.send(4, 'Test message');
copied to clipboard
Close connection
await client.close();
copied to clipboard
Contributing #
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.
License #
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.