cuddlefish-app / cuddlefish

GitHub comments for human beings
cuddlefish.vercel.app
0 stars 0 forks source link

Changing the hoverLine causes a new websocket connection to be made #3

Open samuela opened 3 years ago

samuela commented 3 years ago

Changing the hoverLine at present produces two log lines:

graphql-engine_1  | {"type":"websocket-log","timestamp":"2020-12-01T06:31:58.143+0000","level":"info","detail":{"event":{"type":"operation","detail":{"request_id":null,"operation_id":"425","query":null,"operation_type":{"type":"stopped"},"operation_name":"CodeAndComments_threads_Subscription"}},"connection_info":{"websocket_id":"a466e470-278e-4e8b-b7bc-67f18133b3fc","token_expiry":null,"msg":null},"user_vars":{"x-hasura-role":"anonymous"}}}
graphql-engine_1  | {"type":"websocket-log","timestamp":"2020-12-01T06:31:58.143+0000","level":"info","detail":{"event":{"type":"operation","detail":{"request_id":"4c3c3ecb-a4fd-43a2-98bc-802b540b9e3a","operation_id":"426","query":null,"operation_type":{"type":"started"},"operation_name":"CodeAndComments_threads_Subscription"}},"connection_info":{"websocket_id":"a466e470-278e-4e8b-b7bc-67f18133b3fc","token_expiry":null,"msg":null},"user_vars":{"x-hasura-role":"anonymous"}}}

Seems like it's re-init'ing new websocket connections every time.