-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the FastFlicker wiki!
Launch git bash where you want to download the solution, then type :
git clone https://github.com/Paraintom/FastFlicker.git
launch FastFlicker.py.
Under windows, it is just a matter of double clicking on the file.
In the last line of this file, you see that the port by default is 8099.
you can change it to any other port's number:
server = SimpleWebSocketServer('', 8099, FastFlicker)
Perfect, your server is now running on localhost on the port you have choosen!
Open twice the web page websocket.html here
Then click on Connect, if connected you should see connected on both of the page.
Then instead of 'Hello World!', just put the same subject for both windows let's say 'test', and click on send on both windows. The server acknowledge the subject doing an echo that you should see. Then any message written on a windows should be visible on the other.
For a real-life integration:
1- launch the service
2- open the chat component