Using binaryjs
as BinaryServer
on my Node.js server, and the clients connect to this node for streaming purposes.
This works great on Chrome and Firefox, but not on Microsoft Edge. In edge, the client never receives the client.on('open')
event. No error messages or exceptions, the event just never gets fired.
Javascript code:
var client = new BinaryClient('wss://example.com:9002');
client.on('open', function () {
// This event is never fired on Edge!
});
Node.js code:
var binaryServer = require('binaryjs').BinaryServer;
var https = require('https');
var httpsserver = https.createServer(options).listen(9002);
var server = binaryServer({ server: httpsserver });
// Edge clients never fire this event!
server.on('connection', function(client) {
client.on('stream', function (stream, meta) {
....
}
}
Any ideas about this one?
via Koby Douek
No comments:
Post a Comment