@readerseye2/cr_type 1.0.186 → 1.0.188

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -66,6 +66,16 @@ export interface ClientToServerEvents {
66
66
  'webrtc:hangup': (payload: {
67
67
  targetSocketId: string;
68
68
  }) => void;
69
+ /**
70
+ * 자녀→부모 peer 오류 통지.
71
+ * 자녀 단말에 카메라가 없거나, answer 생성 실패 등으로 offer를 처리할 수 없을 때 발신.
72
+ * 부모는 watchdog timeout 대신 즉시 명확한 에러 메시지를 받는다.
73
+ */
74
+ 'webrtc:peer-error': (payload: {
75
+ targetParentSocketId: string;
76
+ reason: 'camera-unavailable' | 'no-video-track' | 'offer-failed';
77
+ message?: string;
78
+ }) => void;
69
79
  /**
70
80
  * WebRTC 진단 정보 (부모→서버, 단방향)
71
81
  * - iceCandidateType: 부모 측 selected candidate pair의 local candidate type
@@ -113,6 +113,16 @@ export interface ServerToClientEvents {
113
113
  fromIdx: number;
114
114
  fromSocketId: string;
115
115
  }) => void;
116
+ /**
117
+ * 자녀 측 peer 오류 수신 (부모 측).
118
+ * 자녀 단말에 카메라가 없거나 offer 처리 실패 시 즉시 통지된다.
119
+ */
120
+ 'webrtc:peer-error': (payload: {
121
+ fromChildIdx: number;
122
+ fromSocketId: string;
123
+ reason: 'camera-unavailable' | 'no-video-track' | 'offer-failed';
124
+ message?: string;
125
+ }) => void;
116
126
  }
117
127
  export interface NoticeToClientEvents {
118
128
  'notice-message:result': (payload: NoticeMessageResult) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@readerseye2/cr_type",
3
- "version": "1.0.186",
3
+ "version": "1.0.188",
4
4
  "description": "CheckReading shared TypeScript types",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",