Comments (2)
This seems to be the result of two issues.
The exception is due to Chrome's lack of support for binary data. You can
work around this by setting the serialization option in peerjs to none and
just sending strings.
The timing issues are a big stranger. They should work fine with SCTP data
channels... what version of Chrome are you using?
On Sat, Oct 26, 2013 at 8:34 PM, Eduardo Dias da Costa <
[email protected]> wrote:
First, thanks for the awesome tool! RTC can't be more easy :)
I have an application with an 'OnUpdate' callback wich sends data using
'connection.send(Time.elapsed)' each 0.1 seconds (~100ms).
In the receiving peer I put a 'console.log()' in the
'connection.on("data",...)' to check the data arriving.
For a bit of time it receives the string data correctly "1.1,1.2,1.3,..."
after sometime it starts receiving "1.3,2.3,3.3,4.3,..." (one 'data' event
per second). Eventually chrome catches this excetion too:[image: image]https://f.cloud.github.com/assets/5433382/1414879/4e68b094-3eb8-11e3-8799-277e9ec2dbc7.png
The line error is here:
[image: image]https://f.cloud.github.com/assets/5433382/1414881/81e99ece-3eb8-11e3-8523-0239c0bcdea1.png
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/25
.
510-691-3951
http://ericzhang.com
from peerjs-server.
I edited the issue above.
The test was made with 2 Chrome tabs in the same window.
The loop in the unfocused tab will run in a rate smaller than 100ms.
Created the 2 test tabs in different windows and the loop was correct on both.
This avoided the slow send rate and the strange exception.
I think you can send an Uint8Array in it though!
Thanks!
from peerjs-server.
Related Issues (20)
- migrate from localhost to shared hosting
- Combine a peer server with nestjs application
- Back4App - Was Working - Now Stopped HOT 1
- Unnecessary high CPU impact due to low default check interval of broken connections HOT 1
- cannot start server on ubuntu vm
- ssl failed HOT 1
- TypeError: (0 , $cl6Iw$ws.WebSocketServer) is not a constructor HOT 3
- Error: unexpected token . HOT 3
- RedisClient error: ConnectionTimeoutError: Connection timeout
- custom domain in local dev with https enable
- Deploying peerjs server HOT 4
- TURN servers down? HOT 3
- connection.on('dataChunk',(dataChunk)=>{})
- Status page is not working HOT 1
- Client-Initiated SSL Renegotiation Permitted HOT 4
- TURN servers unavailable?? HOT 3
- New maintainer(s) wanted!
- Google App Engine Deployment in Readme is not Right: HOT 1
- Dependency Dashboard
- Support multiple Docker image architectures
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from peerjs-server.