Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nothing happens on 'request´ #9

Open
dkcas11 opened this issue Jul 3, 2018 · 2 comments
Open

Nothing happens on 'request´ #9

dkcas11 opened this issue Jul 3, 2018 · 2 comments

Comments

@dkcas11
Copy link

dkcas11 commented Jul 3, 2018

Hey, i have setup my server and trying to connect from iOS 11.3, but so far nothing is being called in the onRequest function or listener. Am i missing something?

Currently my iPhone fails to connect and shows an error, but shows up as connected after a while, even though nothing happens in the terminal.

'use strict'

var airplay = require('airplay-server')
var port = 7000

var server = airplay({ name: 'my-airplay', txt: {
	deviceid: 'xxx'
   	features: 0x5A7FFFF7,
	flags:0x44,
   	model: 'AppleTV3,2',
	pk:'xxx',
	pi:'xxx',
  	srcvers: '220.68',
	vv: 2
}}/*, function (req, res) {
	// onRequest
  	console.log(req.method, req.url)
  	console.log(req.headers)
}*/)

server.on('request', function (req, res) {
  	console.log(req.method, req.url)
  	console.log(req.headers)
})

server.on('listening', function () {
	// stuff
})

server.listen(port, function () {
 	console.log('AirPlay server is listening on port %d', server.address().port)
})

Fair warning, i am not a JS dev though.

Thanks :-)

@ajouve
Copy link

ajouve commented Aug 9, 2019

@dkcas11 Same issue for me, any updates ?

@purefan
Copy link

purefan commented Jul 10, 2020

Maybe @watson can shed some light? For me the problem is that my iphone doesnt even list the server running from my laptop (both running on the same network) but I fear this project is just completely abandoned

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants