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

this.stream.read() is undefined #383

Open
mib32 opened this issue Jun 15, 2015 · 0 comments
Open

this.stream.read() is undefined #383

mib32 opened this issue Jun 15, 2015 · 0 comments

Comments

@mib32
Copy link

mib32 commented Jun 15, 2015

When i pass my stream object to shareJS, it throws error. But i'm totally sure that it is normal stream. Streams just don't have read() method

This is example using faye-websocket implementation

http   = require 'http'
share  = require 'share'
WebSocket   = require 'faye-websocket'

server = http.createServer()
server.on 'upgrade', (request, socket, body) ->
  if WebSocket.isWebSocket(request)
    ws = new WebSocket(request, socket, body)
    shareClient = share.server.createClient(backend: backend)
    shareClient.listen(ws.pipe(ws))

I also try to pass in stream from SockJS, having the same error.

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

1 participant