Skip to content

Commit

Permalink
Merge pull request #46 from muzzammilshahid/rename-to-xconn
Browse files Browse the repository at this point in the history
Rename exports file to xconn and add library tag
  • Loading branch information
muzzammilshahid authored Jun 28, 2024
2 parents 77a98b5 + 29fe46a commit be3545e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ Import it
Now in your Dart code, you can use:

```dart
import 'package:xconn/exports.dart';
import 'package:xconn/xconn.dart';
```
2 changes: 1 addition & 1 deletion example/in_memory_router.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import "package:xconn/exports.dart";
import "package:xconn/src/types.dart";
import "package:xconn/xconn.dart";

const procedureName = "io.xconn.example_procedure";
const topicName = "io.xconn.example_topic";
Expand Down
2 changes: 1 addition & 1 deletion lib/src/server.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import "dart:io";
import "package:wampproto/auth.dart";
import "package:web_socket_channel/io.dart";
import "package:web_socket_channel/web_socket_channel.dart";
import "package:xconn/exports.dart";
import "package:xconn/src/acceptor.dart";
import "package:xconn/src/helpers.dart";
import "package:xconn/src/types.dart";
import "package:xconn/xconn.dart";

class Server {
Server(this._router);
Expand Down
2 changes: 1 addition & 1 deletion lib/src/xconn.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import "dart:io";

import "package:args/args.dart";
import "package:xconn/exports.dart";
import "package:xconn/xconn.dart";

Future<void> main(List<String> args) async {
var parser = ArgParser()
Expand Down
3 changes: 3 additions & 0 deletions lib/exports.dart → lib/xconn.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/// WAMP v2 Client and Router for Dart
library xconn;

export "package:wampproto/auth.dart"
show AnonymousAuthenticator, CryptoSignAuthenticator, TicketAuthenticator, WAMPCRAAuthenticator;
export "package:wampproto/serializers.dart" show CBORSerializer, JSONSerializer, MsgPackSerializer, Serializer;
Expand Down
2 changes: 1 addition & 1 deletion test/router_test.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import "package:test/test.dart";
import "package:wampproto/messages.dart" as msg;

import "package:xconn/exports.dart";
import "package:xconn/src/types.dart";
import "package:xconn/xconn.dart";

void main() {
const testProcedure = "io.xconn.test_procedure";
Expand Down

0 comments on commit be3545e

Please sign in to comment.