ezchat

  • A no-frill easy chat
  • Instant setup
In [1]:
# convient during dev
%load_ext autoreload
%autoreload 2
In [2]:
from ezchat.servers import hub, client, kill

Launch Hub and Client servers

In [3]:
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
Out[3]:
['9211', '9208']
In [4]:
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
Out[4]:
['9344', '9341']

Kill servers

In [5]:
kill(h)
Killing pids: ['9211', '9208']
Server killed
In [6]:
kill(c)
Killing pids: ['9344', '9341']
Server killed