예제 #1
0
 def __init__(self):
     Server.__init__(self, (listen, port))
     Static(docroot="../html/").register(self)
     DartsWSServer().register(self)
     DartsServerController().register(self)
     Root().register(self)
     #Logger().register(Webserver)
     WebSockets("/websocket").register(self)
예제 #2
0
 def __init__(self):
     Server.__init__(self, PORT) #"localhost", PORT)
     self + WebController() + Static(docroot=PATH)
예제 #3
0
 def __init__(self):
     Server.__init__(self, "0.0.0.0:%d" % PORT) #"localhost", PORT)
     self + WebController() + Static(docroot=SHOTPATH)
예제 #4
0
 def __init__(self):
     Server.__init__(self, "0.0.0.0:%d" % PORT) #"localhost", PORT)
     self + WebController() + Static(docroot=SHOTPATH)
예제 #5
0
 def __init__(self):
     Server.__init__(self, PORT)  #"localhost", PORT)
     self + WebController() + Static(docroot=PATH)
예제 #6
0
 def __init__(self):
     log("RaspuinoDartMiniServer::__init__")
     Server.__init__(self, ("0.0.0.0", 8000))
     # Static(docroot=".", defaults=['RaspuinoDartMini.html']).register(self)
     RaspuinoDartMiniEcho().register(self)
     WebSocketsDispatcher("/websocket").register(self)