it's just when copying a mistake as soon as I subscribe page begins to be 
updated

понедельник, 7 ноября 2016 г., 19:50:46 UTC+9 пользователь Marc Worrell 
написал:
>
> I see a “:” in the javascript code, that should be a “.”  (as in 
> pubzub.subscribe(…) ).
>
> - Marc
>
>
> On 02 Nov 2016, at 14:57, heiheshang <[email protected] <javascript:>> 
> wrote:
>
> I saw the documentation, I can not repeat the work.
>
> z_mqtt:publish(<<"~pagesession/ticket/t">>,[],Context).
> ....
> javascript code
> {% javascript %}
> pubzub:subscribe("~pagesession/ticket/#",function(topic,msg) {console.log(
> msg)});
> {%endjavascript%}
>
> It does not work for me
>
> четверг, 13 октября 2016 г., 15:36:28 UTC+9 пользователь M-MZ написал:
>>
>> Here you subscribe to a local page topic. The handler will be called when 
>> a message matching topic is published. This is done via:
>>
>>      pubzub.publish("~pagesession/foo/bar", "hello world");
>>
>> You can also subscribe and publish to side wide topics. See: 
>> http://docs.zotonic.com/en/latest/ref/modules/mod_mqtt.html
>>
>> An example of its usage can be found here:
>>
>>
>> https://github.com/zotonic/zotonic/blob/master/modules/mod_admin_statistics/templates/admin_statistics.tpl#L77
>>
>> This subscribes the page to server statistic publishes, and displays them.
>>
>> Regards,
>>
>> Maas
>>
>
> -- 
>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Zotonic developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Zotonic developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to