[WebSocket API]: Missing Open() method

How does the specification guarantee that the onopen event will be fired?

There is no Open() method definition in the interface.

Using a local server during development there won't necessarily be any delay 
in opening the connection, so that when defining an onopen() handler the 
readyState will already have reached OPEN. So no onopen event would be 
fired.

... or did I miss that point in the spec?

Regards,
Axel Dahmen
www.axeldahmen.de 

Received on Thursday, 13 November 2014 13:33:31 UTC