@@ -98,18 +98,18 @@ class LiveQuery {
98
98
if (_debug) {
99
99
print ('$_printConstLiveQuery : Done' );
100
100
}
101
- }, onError: (error, StackTrace stackTrace) {
101
+ }, onError: (Error error, StackTrace stackTrace) {
102
102
if (_debug) {
103
103
print (
104
104
'$_printConstLiveQuery : Error: ${error .runtimeType .toString ()}' );
105
105
}
106
106
return Future .value (
107
- handleException (error, ParseApiRQ .liveQuery, _debug, _className));
107
+ handleException (Exception ( error) , ParseApiRQ .liveQuery, _debug, _className));
108
108
});
109
109
110
110
//The connect message is sent from a client to the LiveQuery server.
111
111
//It should be the first message sent from a client after the WebSocket connection is established.
112
- _connectMessage = {
112
+ _connectMessage = < String , String > {
113
113
'op' : 'connect' ,
114
114
'applicationId' : _client.data.applicationId,
115
115
'clientKey' : _client.data.clientKey ?? ''
@@ -125,7 +125,7 @@ class LiveQuery {
125
125
126
126
//After a client connects to the LiveQuery server,
127
127
//it can send a subscribe message to subscribe a ParseQuery.
128
- _subscribeMessage = {
128
+ _subscribeMessage = < String , dynamic > {
129
129
'op' : 'subscribe' ,
130
130
'requestId' : requestId,
131
131
'query' : {
@@ -144,7 +144,7 @@ class LiveQuery {
144
144
_channel.sink.add (jsonEncode (_subscribeMessage));
145
145
146
146
//Mount message for Unsubscribe
147
- _unsubscribeMessage = {
147
+ _unsubscribeMessage = < String , dynamic > {
148
148
'op' : 'unsubscribe' ,
149
149
'requestId' : requestId,
150
150
};
0 commit comments