|  Developer
Updated on November 14, 2021

get_sockets()

  • Gets array of opened sockets by current plugin.
Edit
  • params: none
  • return: array of socket handles
Edit
				
					require "network"

local sockets = network.get_sockets()
for idx = 1, #sockets do
    print (sockets[idx])
end