Skip to content

Commit be240f5

Browse files
Doflatangojumperchen
authored andcommitted
Fixes timestamp param
1 parent 28c845e commit be240f5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/src/engine/transport/io_websocket_transport.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class IOWebSocketTransport extends Transport {
123123
var schema = opts['secure'] ? 'wss' : 'ws';
124124
// append timestamp to URI
125125
if (opts['timestampRequests'] == true) {
126-
query[opts['timestampRequests']] =
126+
query[opts['timestampParam']] =
127127
DateTime.now().millisecondsSinceEpoch.toRadixString(36);
128128
}
129129

lib/src/engine/transport/polling_transport.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ class PollingTransport extends Transport {
227227

228228
// cache busting is forced
229229
if (opts['timestampRequests'] != null) {
230-
query[opts['timestampRequests']] =
230+
query[opts['timestampParam']] =
231231
DateTime.now().millisecondsSinceEpoch.toRadixString(36);
232232
}
233233

lib/src/engine/transport/websocket_transport.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class WebSocketTransport extends Transport {
113113
var schema = opts['secure'] ? 'wss' : 'ws';
114114
// append timestamp to URI
115115
if (opts['timestampRequests'] == true) {
116-
query[opts['timestampRequests']] =
116+
query[opts['timestampParam']] =
117117
DateTime.now().millisecondsSinceEpoch.toRadixString(36);
118118
}
119119

0 commit comments

Comments
 (0)