kuzzleio / documentation-old

Source of http://docs.kuzzle.io/
Apache License 2.0
1 stars 2 forks source link

Issue related to "~ realtime controller/subscribe" section #164

Closed benoitvidis closed 7 years ago

benoitvidis commented 7 years ago

The documentation states that the client must join the room it has subscribed to:

=> You send a subscription query to Kuzzle
<= Kuzzle responds to you with a roomId and a channel
=> You listen to the channel provided in the response
<= Kuzzle forwards the corresponding notifications on that channel

This is true for MQTT, but not for Websocket or socket io, where the client will immediately start receiving notifications after the subscribe calls

ballinette commented 7 years ago

No, not in the API. It's true if you use the SDK, as the SDK listen automatically to the channel after the subscribe call

But if you don't use the SDK, you must then listen yourself to the given channel.

benoitvidis commented 7 years ago

@ballinette https://github.com/kuzzleio/kuzzle/blob/rc.x/lib/api/core/hotelClerk.js#L97