Closed leviroth closed 6 years ago
A few things that are missing from this PR:
t_of_js
and t_to_js
(so one can convert Event.target
back to WebSocket.t
)binaryType
propertyreadyState
property and corresponding constantsAdded. Will squash once the jsoo bug is fixed.
@leviroth Thanks! binaryType
should also be settable, the rest looks good to me.
I've squashed this down to one commit.
Thanks!
This PR adds bindings for WebSockets.
One thing that's missing is support for
CloseEvent
, which adds acode
attribute to the normal attributes of an event. I wasn't sure if there's an easy way to include the interface forEvent
.