Description Usage Arguments Details Value Author(s) See Also Examples
Service events queued for a websocket server.
1 | service(context, timeout = 1000L, server=context)
|
context |
The websocket environment returned from |
timeout |
An integer value indicating the service timeout interval in milliseconds. The default value is one second. |
server |
Future versions of this package will drop the context terminology, replacing it with server. The context argument is maintained in this package version for backwards compatibility with previous package versions. |
Websocket events are placed in a queue and are serviced on a first-come,
first-served basis by the service
function. This function is normally
placed in a loop. The function times out after the specified interval if
events do not occur.
NULL is invisibly returned
B. W. Lewis <blewis@illposed.net>
1 | # See the detailed example in help('websockets')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.