# WebSockets

Lucid provides an action to set up a Web socket connection. Web sockets are similar to AJAX, in that they can asynchronously recieve and send data to a remote server. However, Web sockets differ in that they do not simply use the HTTP protocol, and are more similar to simple byte streams. If you wish to simply read data from your server, AJAX may provide a simpler way of doing this.

To use the rotate capability, choose 'Rotate' from the 'Misc' menu, and as usual drag from the circle on the right of the action to the element you wish to rotate. To get started, you may choose some presets from the gear menu on the top left of the window. If you choose 'Slowly rotate forever', the action will cause the element to slowly rotate until you close the browser window.