Ivelin Ivanov
Ivelin Ivanov
Thank you for the links @ozett . Done: https://github.com/blakeblackshear/frigate/discussions/1043#discussioncomment-1525002
Quick update. Signaling seems to work well now. Python’s port can maintain connection with the peerjs signaling server and trade offers with remote peerjs clients running in the browser. Progressing...
Another update. PeerJS Python is now able to connect and exchange datachannel messages with PeerJS. Is there any interest to move the python port under the official PeerJS project?
@kidandcat Thanks for the invitation. Let’s explore how that might work. I’ll send you a direct message to discuss.
🎁 PeerJS Python is now [available on PyPi](https://pypi.org/project/peerjs/). 🎉 Tested and running in a [real-world application](https://github.com/ambianic/ambianic-ui). Includes additional features that are not currently included in the main peerjs repo: 1....
@PonraJS-21 You can see how peerjs in the browser connects to the [python peerjs port](https://github.com/ambianic/peerjs-python) in the [abmianic app code](https://docs.ambianic.ai/users/quickstart/)
@afrokick thank you for the suggestions. Let me make sure I understand: 1. If I use send(score:1) peerjs will use the default WebRTC serialization which can be decoded without bunarypack...
Looking at the [dataconnection code](https://github.com/peers/peerjs/blob/5e36ba17be02a9af7c171399f7737d8ccb38fbbe/lib/dataconnection.ts#L111), it appears that either its binary mode and pack/unpack is used or its json mode which expects the whole chunk to be a valid json...
> 1,2) If you want to send/receive "raw" data, you can set `dataConnection.serialization = "raw";`(instead of 'raw' you can use any string except json, binary, binary-utf8) Thank you, @afrokick ....
OK, I am able to exchange raw data messages with peerjs python. Next stop is handling bigger chunks of data. Since PeerJS only chunks in binary format using binarypack, I...