Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F7232235
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/sylk/applications/webrtcgateway/__init__.py b/sylk/applications/webrtcgateway/__init__.py
index 37fad08..2e00b69 100644
--- a/sylk/applications/webrtcgateway/__init__.py
+++ b/sylk/applications/webrtcgateway/__init__.py
@@ -1,37 +1,36 @@
from sylk.applications import SylkApplication
from sylk.applications.webrtcgateway.logger import log
from sylk.applications.webrtcgateway.storage import TokenStorage
from sylk.applications.webrtcgateway.util import IdentityFormatter
from sylk.applications.webrtcgateway.web import WebHandler, AdminWebHandler
class WebRTCGatewayApplication(SylkApplication):
def __init__(self):
self.web_handler = WebHandler()
self.admin_web_handler = AdminWebHandler()
def start(self):
self.web_handler.start()
self.admin_web_handler.start()
- # Load tokens from storage
- storage = TokenStorage()
- storage.load()
+ # Load tokens from the storage
+ token_storage = TokenStorage()
+ token_storage.load()
def stop(self):
self.web_handler.stop()
self.admin_web_handler.stop()
def incoming_session(self, session):
log.info(u'New incoming session %s from %s rejected' % (session.call_id, IdentityFormatter.format(session.remote_identity)))
session.reject(403)
def incoming_subscription(self, request, data):
request.reject(405)
def incoming_referral(self, request, data):
request.reject(405)
def incoming_message(self, request, data):
request.reject(405)
-
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Dec 28, 9:15 PM (15 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3454362
Default Alt Text
(1 KB)
Attached To
Mode
rSYLK SylkServer
Attached
Detach File
Event Timeline
Log In to Comment