Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Engine.io not usable in web workers #120

Closed
ghost opened this Issue · 6 comments

2 participants

@ghost

Engine.io seems to rely on objects that are not available in web workers.

If I try to implement a test setup inside a web worker by using

importScripts('http://localhost:8080/engine.io.js');

the browser gives me an error: window is not defined.

Is there any chance of getting rid of these dependencies? Socket.io does work inside web workers, so I expected Engine.io to do so, too, since it is only part of Socket.io.

@rauchg
Owner

Yeah this is absolutely needed.

@albertyfwu

it looks like this issue has mostly to do with visionmedia/debug and component

@albertyfwu

Apparently this has been fixed in component

@rauchg
Owner

@albertyfwu is this the only thing that was preventing us from executing in a webworker?

@rauchg rauchg closed this
@rauchg
Owner

Fixed in 0.8.2 and added automated tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.