We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
部屋を削除しても部屋内で用いられるニックネームとユーザ名の対応辞書がサーバ上のメモリに残ってしまっている。 サーバのメモリの節約のために部屋が削除されたとき上記辞書を削除したい。
The text was updated successfully, but these errors were encountered:
RoomDeleteHandlerで処理する
Sorry, something went wrong.
Chatがclear_cachesメソッドを持っていて、これを使えばニックネームとユーザ名の対応辞書の削除ができる。でも、RoomSocketHandler内で生成されたChatインスタンスをRoomDeleteHandlerに渡せないので、RoomDeleteHandlerがこの対応辞書を削除する手段がみつからない。
clear_cachesメソッドをstaticにすればRoomDeleteHandlerからもアクセスできるが、なんとなく気持ち悪いので放置しておきます。
No branches or pull requests
部屋を削除しても部屋内で用いられるニックネームとユーザ名の対応辞書がサーバ上のメモリに残ってしまっている。
サーバのメモリの節約のために部屋が削除されたとき上記辞書を削除したい。
The text was updated successfully, but these errors were encountered: