1515
1616class NetworkTablesWebSocket (WebSocketHandler ):
1717 """
18- A tornado web handler that forwards values between NetworkTables
19- and a webpage via a websocket
18+ A tornado web handler that forwards values between NetworkTables
19+ and a webpage via a websocket
2020 """
2121
2222 ntserial = None
@@ -28,7 +28,7 @@ def open(self):
2828
2929 def check_origin (self , origin ):
3030 """
31- Allow CORS requests
31+ Allow CORS requests
3232 """
3333 return True
3434
@@ -53,8 +53,8 @@ def on_close(self):
5353
5454class NonCachingStaticFileHandler (StaticFileHandler ):
5555 """
56- This static file handler disables caching, to allow for easy
57- development of your Dashboard
56+ This static file handler disables caching, to allow for easy
57+ development of your Dashboard
5858 """
5959
6060 # This is broken in tornado, disable it
@@ -70,22 +70,22 @@ def set_extra_headers(self, path):
7070
7171def get_handlers ():
7272 """
73- Returns a list that can be concatenated to the list of handlers
74- passed to the ``tornado.web.Application`` object. This list contains
75- handlers for the NetworkTables websocket and the necessary javascript
76- to use it.
77-
78- Example usage::
79-
80- import pynetworktables2js
81- import tornado.web
82-
83- ...
84-
85- app = tornado.web.Application(
86- pynetworktables2js.get_handlers() + [
87- # tornado handlers here
88- ])
73+ Returns a list that can be concatenated to the list of handlers
74+ passed to the ``tornado.web.Application`` object. This list contains
75+ handlers for the NetworkTables websocket and the necessary javascript
76+ to use it.
77+
78+ Example usage::
79+
80+ import pynetworktables2js
81+ import tornado.web
82+
83+ ...
84+
85+ app = tornado.web.Application(
86+ pynetworktables2js.get_handlers() + [
87+ # tornado handlers here
88+ ])
8989 """
9090
9191 js_path_opts = {"path" : abspath (join (dirname (__file__ ), "js" ))}
0 commit comments