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
- Entegrasyon
- İlk Bağlantı
- Sanal Adresler
- Farklı Bir Eşe Bağlanma
- Veri Transferi / Tünelleme
- Oda Kurma ve Yönetme
- Veri Senkronizasyonu
- Bildirim Sistemi
- 3. Parti Sunucu Köprüsü
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.
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.
Frontend API
- mwse.server : Connection
- mwse.WSTSProtocol : WSTSProtocol
- mwse.EventPooling : EventPool
- mwse.rooms : Map<string, Room>
- mwse.pairs : Map<string, Peer>
- mwse.peers : Map<string, Peer>
- mwse.virtualPressure : VirtualPressure
- mwse.me : Peer
- mwse.destroy
- mwse.enableRecaiveData
- mwse.disableRecaiveData
- mwse.enableSendData
- mwse.disableSendData
- mwse.enableNotifyRoomInfo
- mwse.disableNotifyRoomInfo
- mwse.request
- mwse.response
- mwse.room
- mwse.peer