Added a method to expose the flashsocket