okay fixed websocket error.

you can't import a module in a class.
it has to be done on the global score or inside the function.