apigear-io / cli

The ApiGear client as go project
https://apigear.io
MIT License
1 stars 2 forks source link

client shall send back an init message on client reconnection #48

Open jryannel opened 1 year ago

jryannel commented 1 year ago

Simulation only: Clients rely on receiving an init message after a link message is received. The init message should contain all properties defined. The simulation send an init message after linking of objects, but not after re-connecting.

jryannel commented 1 year ago

Based on this json feed:

["link", "demo.Counter"]
["unlink", "demo.Counter"]

The simulation returns one link message:

12:15:08 INF -> link demo.Counter
12:15:08 INF -> unlink demo.Counter

Not sure what this problem was, or was it fixed already.

jryannel commented 1 year ago

The simulation can and shall not send init message on re-connection. It is the duty of the client to re-link the object. The simulation can not who the client is, as the client re-connects.

jryannel commented 1 year ago

@w4bremer are you still want to handle this?