Current behavior
The subsciption fail to listen sometimes using "Type subscription", but no error message.
So I try to discover debug message between graphcool cloud, using plain websocket.
The subscription fail to listen to new data, but doesn't get either 'subscription_success' or 'subscription_fail'.
While subscription success printed, the behavior is normal as expected.
Reproduction
Using plain websocket implemetation from graphcool doc.
webSocket.onmessage = (event) => {
const data = JSON.parse(event.data)
switch (data.type) {
case 'init_success': {
console.log('init_success, the handshake is complete')
break
}
case 'init_fail': {
throw {
message: 'init_fail returned from WebSocket server',
data
}
}
case 'subscription_data': {
console.log('subscription data has been received', data)
break
}
case 'subscription_success': {
console.log('subscription_success')
break
}
case 'subscription_fail': {
throw {
message: 'subscription_fail returned from WebSocket server',
data
}
}
}
}
Expected behavior?
The subscription should fail in "onmessage" event if it couldn't return the correct result.
Environment Cluster: ap-northeast Device: react native(both ios, android), chrome
Current behavior The subsciption fail to listen sometimes using "Type subscription", but no error message. So I try to discover debug message between graphcool cloud, using plain websocket.![image](https://user-images.githubusercontent.com/10044119/37556279-b4758ef0-2a2e-11e8-8ff5-9f433c10fe29.png)
The subscription fail to listen to new data, but doesn't get either 'subscription_success' or 'subscription_fail'. While subscription success printed, the behavior is normal as expected.
Reproduction
Using plain websocket implemetation from graphcool doc.
Expected behavior? The subscription should fail in "onmessage" event if it couldn't return the correct result.