Skip to content

Commit cf93c37

Browse files
committed
Preparing to publish
1 parent d85a066 commit cf93c37

File tree

2 files changed

+19
-11
lines changed

2 files changed

+19
-11
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,8 @@
4040

4141
## 1.1.1
4242

43-
- Bug fixes contributed by janjoosse [#49](https://github.com/jamiewest/signalr_core/pull/49)
43+
- Bug fixes contributed by janjoosse [#49](https://github.com/jamiewest/signalr_core/pull/49)
44+
45+
## 1.1.2
46+
47+
- Updated packages

example/main.dart

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,21 @@ import 'package:http/io_client.dart';
44
import 'package:signalr_core/signalr_core.dart';
55

66
Future<void> main(List<String> arguments) async {
7-
final connection = HubConnectionBuilder().withUrl('http://localhost:5000/chatHub',
8-
HttpConnectionOptions(
9-
client: IOClient(HttpClient()..badCertificateCallback = (x, y, z) => true),
10-
logging: (level, message) => print(message),
11-
)).build();
12-
13-
await connection.start();
7+
final connection = HubConnectionBuilder()
8+
.withUrl(
9+
'http://localhost:5115/chatHub',
10+
HttpConnectionOptions(
11+
client: IOClient(
12+
HttpClient()..badCertificateCallback = (x, y, z) => true),
13+
logging: (level, message) => print(message),
14+
))
15+
.build();
1416

15-
connection.on('ReceiveMessage', (message) {
17+
await connection.start();
18+
19+
connection.on('ReceiveMessage', (message) {
1620
print(message.toString());
17-
});
21+
});
1822

19-
await connection.invoke('SendMessage', args: ['Bob', 'Says hi!']);
23+
await connection.invoke('SendMessage', args: ['Bob', 'Says hi!']);
2024
}

0 commit comments

Comments
 (0)