-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closing the websocket #8
Comments
Hi.
A more modern version of specification seem to say void close([Clamp] optional unsigned short code, optional USVString reason); with a more detailed description of
Yes, 2009 might be a bit too old.
I'll take a look at this when I wake up, I remember testing the example, but probably I didn't notice that, and adding some automated tests which make sure that it works (e.g. in phantomjs) wouldn't hurt anyway. I'll also try to lookup how far does the browser support goes for this parameters, probably it's actually quite new, hence the failures. It seems that |
Depending on internal purescript details ( |
Hahaha, okay that's embarassing that i didn't notice that my cursory Google search was to an ancient version of the working document. :-) thanks for following up! |
In order to properly fix |
As of original problem, I can't really reproduce the "always fail to dereference" thingy. When I run the example, it executes the |
Ok, I see the problem now. Seems that if you do I think I should change the
I am not yet sure what would be a good type (and name) for |
Please take a look at PR. |
A very small issue: the example in the repo closes the socket with two parameters, both given as Nothing (and interpreted in the WebSocket.js
closeImpl
method asmCode
andmReason
respectively.But this will always fail to dereference and in any case it seems to me that the spec [1] doesn't actually take any parameters, tho' perhaps an antecedent spec did, i don't know.
[1] http://www.w3.org/TR/2009/WD-websockets-20091222/#websocket
The text was updated successfully, but these errors were encountered: