2
0
mirror of https://github.com/esiur/esiur-dart.git synced 2026-04-03 17:58:21 +00:00
This commit is contained in:
2022-02-12 15:37:45 +03:00
parent 25260c6155
commit d41911b1ab
9 changed files with 280 additions and 77 deletions

View File

@@ -267,7 +267,7 @@ class DistributedConnection extends NetworkConnection with IStore {
throw AsyncException(ErrorType.Exception, 0, "Session not initialized");
if (socket == null) {
if (useWebsocket) {
if (useWebsocket || kIsWeb) {
socket = new WSocket()..secure = secureWebSocket;
} else
socket = new TCPSocket();
@@ -2381,7 +2381,7 @@ class DistributedConnection extends NetworkConnection with IStore {
// @TODO: Generator code
DistributedResource dr;
if (resource == null) {
if (resource == null) {
var template =
Warehouse.getTemplateByClassId(rt[0], TemplateType.Wrapper);
if (template?.definedType != null) {