mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fixed definition of Close and Send in WebSocket.webidl and updated implementation in websocket.rs.
This commit is contained in:
parent
c51e9f0455
commit
66e9b33a52
5 changed files with 17 additions and 8 deletions
|
@ -21,13 +21,13 @@ interface WebSocket : EventTarget {
|
|||
attribute EventHandler onclose;
|
||||
//readonly attribute DOMString extensions;
|
||||
//readonly attribute DOMString protocol;
|
||||
//[Throws] void close([Clamp] optional unsigned short code, optional DOMString reason); //Clamp doesn't work
|
||||
[Throws] void close(optional unsigned short code, optional DOMString reason); //No clamp version - works
|
||||
//[Throws] void close([Clamp] optional unsigned short code, optional USVString reason); //Clamp doesn't work
|
||||
[Throws] void close(optional unsigned short code, optional USVString reason); //No clamp version - works
|
||||
|
||||
//messaging
|
||||
//attribute EventHandler onmessage;
|
||||
//attribute BinaryType binaryType;
|
||||
[Throws] void send(optional DOMString data);
|
||||
[Throws] void send(optional USVString data);
|
||||
//void send(Blob data);
|
||||
//void send(ArrayBuffer data);
|
||||
//void send(ArrayBufferView data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue