Skip to content

Commit 09b51f6

Browse files
committed
Release 1.0.1
1 parent b37b2e1 commit 09b51f6

File tree

7 files changed

+21
-9
lines changed

7 files changed

+21
-9
lines changed

CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## 1.0.1
2+
3+
**Bug Fix:**
4+
5+
* [#45](https://github.com/rikulo/socket.io-dart/issues/45) [BUG] Calling close on Server raises ConcurrentModificationError
6+
7+
**New Feature:**
8+
9+
* [#47](https://github.com/rikulo/socket.io-dart/pull/47) Added Future to start and stop server
10+
111
## 1.0.0
212

313
**New Feature:**

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,6 @@ If you are new to Git or GitHub, please read [this guide](https://help.github.co
9191
* Thanks [@ThinkDigitalSoftware](https://github.com/ThinkDigitalSoftware) for https://github.com/rikulo/socket.io-dart/pull/15
9292
* Thanks [@guilhermecaldas](https://github.com/guilhermecaldas) for https://github.com/rikulo/socket.io-dart/pull/16
9393
* Thanks [@jodinathan](https://github.com/jodinathan) for https://github.com/rikulo/socket.io-dart/pull/17
94-
* Thanks [@jodinathan](https://github.com/jodinathan) for https://github.com/rikulo/socket.io-dart/pull/18
94+
* Thanks [@jodinathan](https://github.com/jodinathan) for https://github.com/rikulo/socket.io-dart/pull/18
95+
* Thanks [@nicobritos](https://github.com/nicobritos) for https://github.com/rikulo/socket.io-dart/pull/46
96+
* Thanks [@nicobritos](https://github.com/nicobritos) for https://github.com/rikulo/socket.io-dart/pull/47

lib/src/client.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,9 @@ class Client {
128128
opts ??= {};
129129
// this writes to the actual connection
130130
void writeToEngine(encodedPackets) {
131-
if (opts!['volatile'] != null && self.conn.transport.writable != true)
131+
if (opts!['volatile'] != null && self.conn.transport.writable != true) {
132132
return;
133+
}
133134
for (var i = 0; i < encodedPackets.length; i++) {
134135
self.conn.write(encodedPackets[i], {'compress': opts['compress']});
135136
}

lib/src/engine/server.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class Server extends Engine {
5454
late bool cookieHttpOnly;
5555
late Map perMessageDeflate;
5656
late Map httpCompression;
57-
dynamic? initialPacket;
57+
dynamic initialPacket;
5858
final Uuid _uuid = Uuid();
5959

6060
Server([Map? opts]) {

lib/src/server.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Server {
3434
// Namespaces
3535
Map<String, Namespace> nsps = {};
3636
late Namespace sockets;
37-
dynamic? _origins;
37+
dynamic _origins;
3838
bool? _serveClient;
3939
String? _path;
4040
String _adapter = 'default';

pubspec.yaml

+3-4
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,17 @@ name: socket_io
22
description: >
33
Port of JS/Node library Socket.io. It enables real-time, bidirectional and
44
event-based communication cross-platform.
5-
version: 1.0.0
6-
author: jumperchen <[email protected]>
5+
version: 1.0.1
76
homepage: https://www.zkoss.org
87
repository: https://github.com/rikulo/socket.io-dart
98
issue_tracker: https://github.com/rikulo/socket.io-dart/issues
109

1110
environment:
12-
sdk: '>=2.12.0-0 <3.0.0'
11+
sdk: '>=2.12.0 <3.0.0'
1312

1413
dependencies:
1514
stream: ^3.0.0
16-
socket_io_common: ^1.0.0-nullsafety.1
15+
socket_io_common: ^1.0.1
1716
uuid: ^3.0.4
1817
logging: ^1.0.0
1918
dev_dependencies:

test/socket.test.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ void main() {
3131
client.emit('fromServer', 'ok');
3232
});
3333
});
34-
io.listen(3000);
34+
await io.listen(3000);
3535
});
3636
});
3737
}

0 commit comments

Comments
 (0)