v1.5.0
sockjs_client_wrapper
`sockjs-client` JS लाइब्रेरी के लिए एक Dart वрапर।
0लाइक 29.5 हज़ार30-दिन डाउनलोड120Pub अंक
Web
SockJS क्लाइंट के चारों ओर एक Dart वрапर। JS लाइब्रेरी के साथ इंटरॉप के लिए js Dart पैकेज का उपयोग करता है।
यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
A Dart wrapper around the SockJS Client. Uses the
js Dart package to interop with the JS lib.
Include the SockJS library in your app's index.html prior to the main Dart/JS
script:
<!DOCTYPE html>
<html>
<head> ... </head>
<body>
<!-- For local dev/debugging, use the unminified version: -->
<script src="/packages/sockjs_client_wrapper/sockjs.js"></script>
<!-- In production, use the minified version: -->
<script src="/packages/sockjs_client_wrapper/sockjs_prod.js"></script>
</body>
</html>
Import package:sockjs_client_wrapper/sockjs_client_wrapper.dart and create a
SockJSClient instance that will connect to a SockJS server:
import 'package:sockjs_client_wrapper/sockjs_client_wrapper.dart';
Future<Null> main() async {
final client = new SockJSClient(Uri.parse('ws://localhost:9000/echo'));
await client.onOpen.first;
client.send('Hello!');
...
}
$ npm install
$ dart pub get
$ dart run dart_dev serve
$ dart run dart_dev test
निर्भरता सूची 9 आइटम
^0.6.1>=2.0.0 <5.0.0^2.1.2^2.1.3>=3.0.0 <5.0.0>=3.6.5 <5.0.0^3.2.0^1.15.7^1.3.0उपयोग के अनुसार छाँटें, गतिविधि की तुलना करें और अपनाने से पहले मूल प्रोजेक्ट की आवश्यकताएँ जाँचें।
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗