oichat_sdk 0.1.1 copy "oichat_sdk: ^0.1.1" to clipboard
oichat_sdk: ^0.1.1 copied to clipboard

OiChat Flutter SDK - Real-time chat client with REST API and Centrifugo WebSocket

Changelog #

0.1.1 #

  • Add bilingual README (English + Korean)
  • Add badges, banner, and documentation links
  • Add GitHub sample project links

0.1.0 #

  • Initial release
  • REST API client (rooms, messages, auth, push, upload)
  • Centrifugo WebSocket real-time messaging
  • Presence tracking
  • Multi-tenant support with project isolation

2026-03-25 #

Server-side Changes (chat-api v1.1) #

Direct Room 중복 생성 허용

동일한 사용자 쌍(A↔B) 사이에 type: direct 방을 여러 개 생성할 수 있습니다. 기존에는 409 에러(Direct room already exists between these users)가 발생했지만, 이제는 제한 없이 생성됩니다.

SDK 코드 변경: 불필요

샘플 앱 적용 가이드:

  1. 거래/목적별 방을 구분하려면 metadata에 컨텍스트 정보를 포함하세요:
await client.rooms.create(
  roomId: 'room-${Uuid().v4()}',
  participants: ['user-A', 'user-B'],
  type: RoomType.direct,
  metadata: {
    'item_id': 'macbook-123',       // 거래 대상
    'item_title': '맥북 프로 14인치', // 표시용 제목
  },
);
  1. RoomClient.create()의 기본 type이 RoomType.group이므로, 1:1 방은 반드시 type: RoomType.direct를 명시하세요.

  2. 기존에 409 에러를 catch해서 기존 방으로 이동하는 로직이 있었다면, 해당 분기를 제거해도 됩니다.

API Key 형태 통일

서버에서 생성하는 모든 API Key 접두사가 ak_live_로 통일되었습니다. (기존에 일부 경로에서 oichat_pk_ 접두사로 생성되던 문제 수정)

SDK 코드 변경: 불필요 — SDK는 키 접두사를 검증하지 않음

0
likes
125
points
23
downloads

Documentation

API reference

Publisher

verified publisheroichatapi.com

Weekly Downloads

OiChat Flutter SDK - Real-time chat client with REST API and Centrifugo WebSocket

Homepage
Repository (GitHub)

License

MIT (license)

Dependencies

centrifuge, http, json_annotation

More

Packages that depend on oichat_sdk