Skip to content
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

Feature/3406 #60

Closed
wants to merge 70 commits into from
Closed

Feature/3406 #60

wants to merge 70 commits into from

Conversation

JavaLangRuntimeException
Copy link
Member

@JavaLangRuntimeException JavaLangRuntimeException commented Jun 4, 2024

こんな感じに実装しました.

import json
from channels.generic.websocket import AsyncWebsocketConsumer
class HOPConsumer(AsyncWebsocketConsumer):
async def connect(self):
await self.channel_layer.group_add("HOP_group", self.channel_name)
await self.accept()
print(f"[DEBUG] WebSocket connection accepted: {self.channel_name}")
async def disconnect(self, close_code):
await self.channel_layer.group_discard("HOP_group", self.channel_name)
print(f"[DEBUG] WebSocket connection closed: {self.channel_name} with code {close_code}")

https://github.com/anshibagundan/AruCo/pull/60/commits/6e2b6de4f7f0c27ed49eabf3c51fd6f67b4addee#diff-50595ba12f0cad40872dc5a726f465347cd1398cdeaa960c6e406da93563f5f3#L10-L12

@JavaLangRuntimeException JavaLangRuntimeException changed the base branch from main to dev/Unity June 13, 2024 02:01
@JavaLangRuntimeException JavaLangRuntimeException marked this pull request as draft June 13, 2024 02:04
@JavaLangRuntimeException JavaLangRuntimeException marked this pull request as ready for review June 25, 2024 01:12
@JavaLangRuntimeException JavaLangRuntimeException changed the base branch from dev/Unity to dev/beta July 4, 2024 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants