-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove test.baseConfig from examples
- Loading branch information
Showing
3 changed files
with
12 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
local test = require 'luawt.test' | ||
local luawt = require 'luawt' | ||
|
||
local module_file = io.open('./examples/hello/hello.lua', 'r') | ||
local code = module_file:read('*all') | ||
module_file:close() | ||
|
||
local ip = '0.0.0.0' | ||
local port = 12346 | ||
local wt_config = test.baseConfig() | ||
local server = test.createServer(code, ip, port, wt_config) | ||
|
||
local server = luawt.WServer({ | ||
code = code, | ||
ip = '0.0.0.0', | ||
port = 12346, | ||
}) | ||
server:start() | ||
server:waitForShutdown() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters