-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b53525a
commit fb9a9e4
Showing
9 changed files
with
72 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/// Copyright (C) 2019 Potix Corporation. All Rights Reserved | ||
/// History: 2019-01-21 12:27 | ||
/// Author: jumperchen<[email protected]> | ||
// Copyright (C) 2019 Potix Corporation. All Rights Reserved | ||
// History: 2019-01-21 12:27 | ||
// Author: jumperchen<[email protected]> | ||
import 'dart:convert'; | ||
|
||
import 'package:logging/logging.dart'; | ||
|
@@ -19,8 +19,7 @@ abstract class Transport extends EventEmitter { | |
String? readyState; | ||
Socket? socket; | ||
|
||
Transport(Map opts) { | ||
this.opts = opts; | ||
Transport(this.opts) { | ||
query = opts['query']; | ||
readyState = ''; | ||
socket = opts['socket']; | ||
|
@@ -105,7 +104,7 @@ abstract class Transport extends EventEmitter { | |
} | ||
get name; | ||
|
||
void pause(onPause()) {} | ||
void pause(Function() onPause) {} | ||
|
||
String createUri(String schema, Map<String, dynamic> query) { | ||
return '$schema://${_hostname()}${_port()}${opts["path"]}${_query(query)}'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/// Copyright (C) 2017 Potix Corporation. All Rights Reserved | ||
/// History: 2017-04-26 12:27 | ||
/// Author: jumperchen<[email protected]> | ||
// Copyright (C) 2017 Potix Corporation. All Rights Reserved | ||
// History: 2017-04-26 12:27 | ||
// Author: jumperchen<[email protected]> | ||
import 'package:socket_io_client/src/engine/transport.dart'; | ||
import 'package:socket_io_client/src/engine/transport/polling_transport.dart'; | ||
import 'package:socket_io_client/src/engine/transport/websocket_transport.dart'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/// Copyright (C) 2017 Potix Corporation. All Rights Reserved | ||
/// History: 2017-04-26 15:27 | ||
/// Author: jumperchen<[email protected]> | ||
// Copyright (C) 2017 Potix Corporation. All Rights Reserved | ||
// History: 2017-04-26 15:27 | ||
// Author: jumperchen<[email protected]> | ||
import 'dart:async'; | ||
import 'dart:math' as math; | ||
|
||
|
@@ -169,7 +169,7 @@ class Manager extends EventEmitter { | |
if (callback != null) callback(); | ||
}); | ||
|
||
var onError; | ||
Function(dynamic error) onError; | ||
// emit `connect_error` | ||
var errorSub = util.on(socket, 'error', onError = (error) { | ||
_logger.fine('error'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters