||the sub protocol
||No, the ownership model for TransportProvider is that the child object is
refcounted "normally". I.e. ipdl code doesn't hold a strong reference to
When TransportProviderChild goes away, it sends a __delete__ message to the
On the parent side, ipdl holds a strong reference to TransportProviderParent.
When the actor is deallocatde it releases the reference to the
So effectively the child holds a strong reference to the parent, and are
otherwise normally refcounted and have their lifetime determined by that
The only other caveat is that the creation happens from the parent.
So to create a TransportProvider, a constructor is sent from the parent to
the child. At this time the child gets its first addref.
A reference to the TransportProvider is then sent as part of some other
message from the parent to the child.
The receiver of that message can then grab the TransportProviderChild and
without addreffing it, effectively using the refcount that the
TransportProviderChild got on creation.
||The only thing this protocol manages is used for is passing a
PTransportProvider object from parent to child and then back to the parent
again. Hence there's no need for any messages on the protocol itself.
||About SSL unsigned certificates
wss will not work to a host using an unsigned certificate unless there
is already an exception (i.e. it cannot popup a dialog asking for
a security exception). This is similar to how an inlined img will
fail without a dialog if fails for the same reason. This should not
is served from the same host as the websocket server (or of course,
a valid cert could just be provided).
||Casting WebSocketEventService to nsISupports is ambiguous.
This method handles that.
||An interface which can be used to asynchronously request a nsITransport
together with the input and output streams that go together with it.
||Low-level websocket API: handles network protocol.
This is primarly intended for use by the higher-level nsIWebSocket.idl.
We are also making it scriptable for now, but this may change once we have
WebSockets for Workers.
||Called to send message of type string through web socket
@param aMessage the message to send
||nsIWebSocketListener: passed to nsIWebSocketChannel::AsyncOpen. Receives
websocket traffic events as they arrive.