This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 12211 - WebSocket open method
Summary: WebSocket open method
Status: RESOLVED WONTFIX
Alias: None
Product: HTML WG
Classification: Unclassified
Component: LC1 HTML5 spec (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://dev.w3.org/html5/websockets/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-01 16:45 UTC by what_ever
Modified: 2011-08-04 05:01 UTC (History)
4 users (show)

See Also:


Attachments

Description what_ever 2011-03-01 16:45:31 UTC
Please make "open" method. what happened if connection establish before onopen property is set?
How to reset socket without it? Only create new socket?
Comment 1 Ian 'Hixie' Hickson 2011-03-24 20:12:14 UTC
The events are queued, so there's actually no problem with the event being sent before the handler is set. So long as you set the handler in the same script that creates the object, you are guaranteed to get every event even if they are queued before the handler is set.

If you want a new connection, yes, create a new socket.
Comment 2 what_ever 2011-03-25 09:19:03 UTC
Okey, thanks!
Comment 3 Michael[tm] Smith 2011-08-04 05:01:21 UTC
mass-moved component to LC1