# convient during dev
%load_ext autoreload
%autoreload 2
from ezchat.servers import hub, client, kill
h = hub(port=5001, detached=True)
h
Script /Users/Olivier/Documents/vuejs/ezchat/ezchat/hub.command created Web server "chat hub" started To check it is running, look for its terminal window Open browser to http://localhost:5001 Note: The server will crash upon start if the port is being used
['9211', '9208']
c = client(port=5002, detached=True)
c
Script /Users/Olivier/Documents/vuejs/ezchat/ezchat/client.command created Web server "ezchat client" started To check it is running, look for its terminal window Open browser to http://localhost:5002 Note: The server will crash upon start if the port is being used
['9344', '9341']
kill(h)
Killing pids: ['9211', '9208'] Server killed
kill(c)
Killing pids: ['9344', '9341'] Server killed