12 Home
saqut edited this page 2026-06-17 12:11:22 +03:00
This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Örnekler ve kullanım

Engine (v0.1.0+)

MWSE engine Go ile yeniden yazıldı. Node.js'teki concurrency hataları (leave-while-send race, EventPool promise takılması) düzeltildi. SDK'nın gördüğü WebSocket tel sözleşmesi değişmedi — mevcut frontend kodunuz doğrudan çalışmaya devam eder.

Kurulum:

git clone https://git.saqut.com/saqut/MWSE
cd MWSE
go run .          # varsayılan: 0.0.0.0:7707

Frontend kütüphanesi

MWSE

mwse.room(options | id)

Odaları isim veya id ile alır / oluşturur.

mwse.peer(id)

Peer nesnelerini socketId ile alır.

mwse.me

Kendi bağlantı nesnesi; socketId, info, pairs alanlarını içerir.