hi,
anyone knows how to pass Qt classes to java script through qt script engine?

I am writing a Qt application where i have used Qt Script engine to evaluate java script.and to run functions from inside java script.
in java script i want to create a tcp client socket. Is it possible to pass Qtcpsocket class to java script through qt script engine in any way ? or is there any other way to accomplish this task?