abdussamedulutas
|
28abefaaa9
|
Frontend TS→JS ES modülleri + #42 codec altyapısı + versiyon握手
SDK (sdk/ dizini — native ES module, bundler yok):
- sdk/version.js : SDK_VERSION="1.0.0", CODEC_JSON/BINARY sabitleri
- sdk/codec.js : WSTSCodec — JSON (şu an), binary stub (#42 altyapısı)
Binary çerçeveleme: opcode(1B)+length(4B)+payload; şimdilik NotImplemented fırlatır
- sdk/EventTarget.js : MWSEEventTarget (browser EventTarget ile çakışma yok)
- sdk/Connection.js : endpoint:"auto" → import.meta.url ile sunucu tespiti
- sdk/WSTSProtocol.js : codec üzerinden encode/decode, sinyal yönlendirme
- sdk/EventPool.js : request()/only() ayrımı (#33 korunuyor)
- sdk/Peer.js : WebRTC stub bağlantısı, WOM pack/to (#33)
- sdk/Room.js : WOM pack/room (#33), createRoom/join/eject
- sdk/PeerInfo.js, RoomInfo.js, IPPressure.js, P2PFileSender.js
- sdk/WebRTC.js : placeholder — ayrıca ele alınacak
- sdk/index.js : MWSE ana sınıfı + versiyon el sıkışması
Versiyon el sıkışması (backend ↔ frontend zorunlu):
- internal/protocol/version.go : WSTSVersion="1.0.0", WSTSCodecJSON=0
- internal/services/yourid.go : bağlantı anında wsts/hello sinyali gönderir
(v + codecs listesi; id sinyalinden ÖNCE gelir)
- sdk/index.js _awaitHello() : scope çalıştırılmadan önce wsts/hello beklenir;
versiyon uyuşmazsa bağlantı kapatılır + 'error' eventi ateşlenir (5s timeout)
Servis (httpserver):
- /sdk.js → 301 /sdk/index.js (import.meta.url doğru çözümlenir)
- /sdk/ → sdk/ dizini file server
- internal/config: MWSE_SDK_DIR env değişkeni (varsayılan ./sdk)
Demo dosyaları: public/demos/{chat,audio,video}.html
go test -race ./... yeşil
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-06-17 12:24:21 +03:00 |
abdussamedulutas
|
c623016841
|
Revision
|
2026-04-23 23:10:05 +03:00 |
abdussamedulutas
|
d98ec6330e
|
İçerik güncellemesi / Bugfix
|
2025-12-07 13:57:08 +03:00 |
abdussamedulutas
|
33b57d7e67
|
WebDevice suite
|
2025-10-17 09:37:09 +03:00 |
abdussamedulutas
|
212e0151fa
|
Merge branch 'perfectnogation' into stable
|
2025-08-01 22:27:28 +03:00 |
abdussamedulutas
|
3d8fb16d70
|
Stable index.js
|
2025-08-01 22:26:49 +03:00 |
abdussamedulutas
|
473dd62789
|
mh288 protokolü oluşturuldu
|
2025-08-01 21:17:28 +03:00 |
abdussamedulutas
|
bcdbe5f3fd
|
Perfect nogation bugfixed
|
2025-07-14 23:22:37 +03:00 |
abdussamedulutas
|
055fdd47bd
|
Test added perfect nogation
|
2025-07-13 16:48:22 +03:00 |
abdussamedulutas
|
965ca07853
|
Test Arayüzü
|
2025-07-13 16:09:06 +03:00 |
abdussamedulutas
|
cbe424f3e3
|
Styling
|
2025-07-01 21:26:31 +03:00 |
abdussamedulutas
|
b66adffd3a
|
Grid analyze
|
2025-06-16 02:50:27 +03:00 |
abdussamedulutas
|
3ebf5cc1f5
|
Grid analyze
|
2025-06-16 02:44:47 +03:00 |
Abdussamed
|
9fe48fab77
|
Bitrate trials webrtc
|
2023-10-02 23:13:20 +03:00 |
Abdussamed
|
2a928381ec
|
Room infodeveloped
|
2023-09-17 17:03:51 +03:00 |
Yasin İLKAYA
|
df792f40cd
|
fetchPeers / Peer count
|
2023-06-02 17:36:37 +03:00 |
Yasin İLKAYA
|
38cc4ab073
|
Feature fix
|
2023-05-23 22:09:57 +03:00 |
Yasin İLKAYA
|
dd1ef9e247
|
Example streaming
|
2023-05-16 15:50:49 +03:00 |
Yasin İLKAYA
|
70cf3a03e4
|
Example streaming
|
2023-05-16 15:47:16 +03:00 |