comparison xml/en/docs/stream/ngx_stream_js_module.xml @ 2911:3cc6e38246b1

Removed note from the js_access directive.
author Yaroslav Zhuravlev <yar@nginx.com>
date Thu, 17 Nov 2022 18:26:29 +0000
parents 9719a0184a67
children 7e83ebfac8ca
comparison
equal deleted inserted replaced
2910:5f1d472f6a97 2911:3cc6e38246b1
7 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> 7 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd">
8 8
9 <module name="Module ngx_stream_js_module" 9 <module name="Module ngx_stream_js_module"
10 link="/en/docs/stream/ngx_stream_js_module.html" 10 link="/en/docs/stream/ngx_stream_js_module.html"
11 lang="en" 11 lang="en"
12 rev="34"> 12 rev="35">
13 13
14 <section id="summary"> 14 <section id="summary">
15 15
16 <para> 16 <para>
17 The <literal>ngx_stream_js_module</literal> module is used to implement 17 The <literal>ngx_stream_js_module</literal> module is used to implement
169 As soon as one of these methods is called, the stream session processing 169 As soon as one of these methods is called, the stream session processing
170 switches to the <link doc="stream_processing.xml">next phase</link> 170 switches to the <link doc="stream_processing.xml">next phase</link>
171 and all current 171 and all current
172 <link doc="../njs/reference.xml" id="s_on"><literal>s.on()</literal></link> 172 <link doc="../njs/reference.xml" id="s_on"><literal>s.on()</literal></link>
173 callbacks are dropped. 173 callbacks are dropped.
174 </para>
175
176 <para>
177 <note>
178 As the <literal>js_access</literal> handler
179 returns its result immediately, it supports
180 only synchronous callbacks.
181 Thus, asynchronous callbacks such as
182 <link doc="../njs/reference.xml" id="ngx_fetch"><literal>ngx.fetch()</literal></link>
183 or
184 <link doc="../njs/reference.xml" id="settimeout"><literal>setTimeout()</literal></link>
185 are not supported.
186 </note>
187 </para> 174 </para>
188 175
189 </directive> 176 </directive>
190 177
191 178