Node Websockets

43 views
Skip to first unread message

Ray

unread,
Mar 17, 2016, 12:16:51 PM3/17/16
to nodejs

Is there a way to have an audio play over a websocket?

As an example, I want to make the sound of a bell on one of the many websocket clients.

Is there an easy way to do that?  I dont want to have to install any file at the client site.

Thanks,

Ray

J Decker

unread,
Mar 19, 2016, 2:35:12 AM3/19/16
to nodejs
I would think an http request for a resource would work better?  websocket you'd have to encode to a string and decode... 
though websocket would be better for sending streams of sounds... so if the server loaded it and passed it to a streaming codec for the client to play?   But not sure how you'd play a sound stream on client?
 
Ray
Reply all
Reply to author
Forward
0 new messages