send query on connecti

This commit is contained in:
nkzawa
2017-07-12 01:09:11 +09:00
parent 2925cdb4e3
commit 4811368854
5 changed files with 47 additions and 5 deletions

View File

@@ -85,7 +85,12 @@ public class IO {
io = managers.get(id);
}
return io.socket(parsed.getPath());
String query = parsed.getQuery();
if (query != null && (opts.query == null || opts.query.isEmpty())) {
opts.query = query;
}
return io.socket(parsed.getPath(), opts);
}