Exemple #1
0
import WebSockets.PWSServer as PWS

PWS.PORT = 8100

PWS.runServer()
Exemple #2
0
import SimpleHTTPServer
import SocketServer
import WebSockets.PWSServer as PWS

PWS.PORT = 8100
PORT = 8000

Handler = SimpleHTTPServer.SimpleHTTPRequestHandler

httpd = SocketServer.TCPServer(("", PORT), Handler)

PWS.runInThread()

print "serving HTTP at port", PORT
httpd.serve_forever()
Exemple #3
0
import PhysVizServer as PVS
import WebSockets.PWSServer as PWS

PWS.runInThread(8100)
PVS.run(8000)