Closed this issue 6 years ago · 1 comments
I put the example code in server.jl and run it by julia server.jl. The server did not start up. The process ended immediately.
server.jl
julia server.jl
Now I see that the serve() method uses @async macro. Append a single line of wait() to the end of server.jl and the issue is resolved.
serve()
@async
wait()