示例#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)