Saturday, June 9, 2012
The WebSocket readyState attribute
The WebSocket object will report the state of its connection through a read-only attribute called readyState.
There are four different values that the readyState attribute can receive to represent the state of the connection.
0 - CONNECTING – The connection has not been established yet.
1 - OPEN – The connection has been established and messages can be exchanged between the client and the server.
2 - CLOSING – The connection is going through the closing handshake.
3 - CLOSED – The connection has been closed or could not be opened.
When the WebSocket object is first created its readyState is 0, indicating that the socket is CONNECTING.
Setting Up Local Environment for Developing Oracle Intelligent Bots Custom Components
Oh the joy of having a local development environment is priceless. For most cloud based solutions the story repeats itself being hard to tr...
-
A few days ago I was helping an Apache user getting the ActiveMQ Web Console up and running on ServiceMix 4.4. At first instance, it seems ...
-
With the proliferation of new device models, form factors and operating systems, you may be thinking about the challenges to make your appl...
-
I just upgraded my machine to Mac OS X (10.6.7) and unfortunately the plugins I have installed with Mac Mail stopped working one more time. ...