I try to require the socket module from within a luaproc process but I just get:
close lua\_State (error: main.lua:8: module 'socket' not found: no field package.preload['socket'] no file '/Users/jocke/Library/Application Support/Corona/Simulator/Plugins/socket.lua' no file 'socket.lua' no file '/Applications/CoronaSDK-2992/Corona Simulator.app/Contents/Resources/socket.lua' no file '/Users/jocke/Library/Application Support/Corona/Simulator/Plugins/socket.dylib' no file './socket.dylib' no file '/Applications/CoronaSDK-2992/Corona Simulator.app/Contents/Resources/socket.dylib')
My test main.lua looks like this:
local luaproc = require "plugin.luaproc" luaproc.setnumworkers(1) local started = luaproc.newproc( function() local socket = require "socket" end) print(started)
I must be missing something here. Can you see what?
Cheers
/Joakim