Enables injecting in websocket class.