-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to manage multiple session whiteboard using tokens ? #1
Comments
What version of tornado do you have running? |
Hi Thanks for reply, Please find code here for main.py: import logging import tornado.httpserver from websockethandler import RealtimeHandler logger = logging.getLogger('websocket') class IndexHandler(tornado.web.RequestHandler):
class RedirectHandler(tornado.web.RequestHandler): class Application(tornado.web.Application):
if name == "main": Here for websockethandler.py: import logging from tools import hexColorToRGB, createCairoContext class RealtimeHandler(tornado.websocket.WebSocketHandler):
May be I think I solved this issue. But few issues are there. When the user first time draws on whiteboard it is not saved into database. I am expecting feedback from you. Thanks. |
I'm looking into it. |
Ok thanks for your supporting. I am looking forward for your reply. |
I can't seem to reproduce the issue of the first time drawing not being saved in database. Please open a new issue with more details if you're still seeing the problem. For the record, can you post your solution to your first problem? |
I am using your collabdraw application. It is very nice app. I have successfully created the session urls. As shown below,
import logging
import json
import os
import threading
import subprocess
import uuid
from zlib import compress
from urllib.parse import quote
from base64 import b64encode
import tornado.websocket
import tornado.web
import redis
from pystacia import read
from tools import hexColorToRGB, createCairoContext
import config
class RealtimeHandler(tornado.websocket.WebSocketHandler):
room_name = ''
token = ''
paths = []
redis_client = None
page_no = 1
num_pages = 1
But I got the error when draw the whiteboard app. I am using url this way http://localhost:4000/test/ggxeu and error is,
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.2/threading.py", line 740, in _bootstrap_inner
self.run()
File "/usr/lib/python3.2/threading.py", line 693, in run
self._target(_self._args, *_self._kwargs)
File "/home/nyros/Desktop/python3/collabdraw/websockethandler.py", line 43, in redis_listener
listener.send_message(message['data'])
File "/home/nyros/Desktop/python3/collabdraw/websockethandler.py", line 147, in send_message
self.write_message(message)
File "/home/nyros/Desktop/python3/venv3/lib/python3.2/site-packages/tornado/websocket.py", line 165, in write_message
self.ws_connection.write_message(message, binary=binary)
AttributeError: 'NoneType' object has no attribute 'write_message'
Please solve my problem.
The text was updated successfully, but these errors were encountered: