These are my configs.json
{
"appId": "1VNASWJ6A1TCOUMEL2J4AV7C3XQNDT",
"clientKey": "your-client-key",
"masterKey": "1PWLGXKHO5EV75IYEZ9F444QUA6U0R",
"appName": "1mir",
"cloud": "./cloud/main",
"databaseURI": "mongodb://localhost:27017/dev",
"javascriptKey": "1D457LONDAI2OIJDBAF7KQB5TF9W5R",
"masterKeyIps": ["0.0.0.0/0", "::/0"],
"liveQuery": {
"classNames": ["Test"]
}
}
{
"apps": [
{
"serverURL": "http://x.x.x.x:1337/parse",
"appId": "myAppId",
"clientKey": "your-client-key",
"masterKey": "1PWLGXKHO5EV75IYEZ9F444QUA6U0R",
"appName": "Amir"
}
],
"users": [
{
"user": "user11",
"pass": "pass"
},
{
"user": "user12",
"pass": "pass"
}
]
}
Everything works fine and I save and edit data, but when I try to run a live query, I get an error.
I/flutter ( 7239): ╭-- Parse Response
I/flutter ( 7239): Class: LiveQuery
I/flutter ( 7239): Function: ParseApiRQ.liveQuery
I/flutter ( 7239): Status Code: -1
I/flutter ( 7239): Type: OtherCause
I/flutter ( 7239): Exception: HandshakeException: Handshake error in client (OS Error:
I/flutter ( 7239): WRONG_VERSION_NUMBER(tls_record.cc:242))
I/flutter ( 7239): ╰--
await Parse().initialize(
Const.appId,
Const.parseServerUrl,
clientKey: Const.clientKey,
debug: true,
liveQueryUrl: Const.keyLiveQuery,
autoSendSessionId: false,
coreStore: await CoreStoreSembastImp.getInstance()
).then((value){
print(value); // all live query code go here
});
I don't know exactly what link to put liveQueryUrl Parse server has been launched at the following address
http://x.x.x.x:133/parse
I value liveQueryUrl
wss://x.x.x.x:133/parse
I have put that I get an error