Added socket listener to plugin