Changes

Jump to navigation Jump to search
51 bytes added ,  14:43, 27 February 2020
no edit summary
|
* Schedule a second query that will notify the client 10 seconds later that a message was processed:
<pre classsyntaxhighlight lang='brush:"xquery'">
declare
%ws:message('/tasks', '{$message}')
ws:eval('prof:sleep(10000), "Your message has been processed."')
};
</presyntaxhighlight>
|}
==Example 1==
<pre classsyntaxhighlight lang="brush:xquery">
import module namespace ws = "http://basex.org/modules/ws";
return ws:broadcast($message)
};
</presyntaxhighlight>
'''Explanation:'''
==Example 2==
<pre classsyntaxhighlight lang="brush:xquery">
import module namespace ws = "http://basex.org/modules/ws";
return ws:emit($message)
};
</presyntaxhighlight>
'''Explanation:'''
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu