Cannnot close websocket

84 views
Skip to first unread message

Ernesto Oltra

unread,
Aug 1, 2012, 3:53:00 PM8/1/12
to mi...@dartlang.org
What's the correct method to close a websocket? The close() method throws this:

Exception: Error: INVALID_ACCESS_ERR: DOM Exception 15 Stack Trace: 0. Function: '_WebSocketImpl@33cc944a._close_1@33cc944a' url: '/mnt/data/b/build/slave/dartium-lucid32-full/build/src/out/Release/obj/gen/webkit/bindings/dart/dart/WebSocketImplementation.dart' line:22 col:18 1. Function: '_WebSoc...@33cc944a.close' url: '/mnt/data/b/build/slave/dartium-lucid32-full/build/src/out/Release/obj/gen/webkit/bindings/dart/dart/WebSocketImplementation.dart' line:19 col:85 2. Function: 'Example.function' url: 'http://127.0.0.1:3030/home/ernesto/projects/example/example/Example.dart' line:35 col:38
 
Ernesto

Don Olmstead

unread,
Aug 5, 2012, 8:55:56 PM8/5/12
to Ernesto Oltra, mi...@dartlang.org
Im having this same issue now after updating to the latest and greatest (Build 10095 Dart SDK version 10087). This was not an issue a few releases back.

 
Ernesto

--
Consider asking HOWTO questions at Stack Overflow: http://stackoverflow.com/tags/dart
 
 

Seth Ladd

unread,
Aug 13, 2012, 5:20:16 PM8/13/12
to Don Olmstead, Ernesto Oltra, mi...@dartlang.org
Hi Don and Ernesto,

Is this still an issue? I'm wondering if we had a regression in Dartium. If it still happens for you in Dartium, please open a bug at http://dartbug.com/new  If you do, please paste in the code that triggers the bug.

Thanks,
Seth

Don Olmstead

unread,
Aug 13, 2012, 5:30:54 PM8/13/12
to Seth Ladd, Ernesto Oltra, mi...@dartlang.org
It did last time I checked. I have my project that will cause it but I haven't had time to make a smaller test case that I could paste in there.

Ernesto Alejo Oltra

unread,
Aug 13, 2012, 7:22:01 PM8/13/12
to mi...@dartlang.org
The error remains equal, but only in Dart. Compiled Javascript works correctly.


Ernesto

2012/8/1 Ernesto Oltra <ernest...@gmail.com>
What's the correct method to close a websocket? The close() method throws this:

Exception: Error: INVALID_ACCESS_ERR: DOM Exception 15 Stack Trace: 0. Function: '_WebSocketImpl@33cc944a._close_1@33cc944a' url: '/mnt/data/b/build/slave/dartium-lucid32-full/build/src/out/Release/obj/gen/webkit/bindings/dart/dart/WebSocketImplementation.dart' line:22 col:18 1. Function: '_WebSoc...@33cc944a.close' url: '/mnt/data/b/build/slave/dartium-lucid32-full/build/src/out/Release/obj/gen/webkit/bindings/dart/dart/WebSocketImplementation.dart' line:19 col:85 2. Function: 'Example.function' url: 'http://127.0.0.1:3030/home/ernesto/projects/example/example/Example.dart' line:35 col:38
 
Ernesto

--

Seth Ladd

unread,
Aug 13, 2012, 7:25:23 PM8/13/12
to mi...@dartlang.org
Thanks for filing the bug, Ernesto, and for including the sample code.
Reply all
Reply to author
Forward
0 new messages