Sha256: 91cab4c9c12b98ff0362331995ce86e5488e2d8f9b6b33d7c22c285cdd1fb763
Contents?: true
Size: 348 Bytes
Versions: 38
Compression:
Stored size: 348 Bytes
Contents
class Poltergeist.Connection constructor: (@owner, @port) -> @socket = new WebSocket "ws://127.0.0.1:#{@port}/" @socket.onmessage = this.commandReceived @socket.onclose = -> phantom.exit() commandReceived: (message) => @owner.runCommand(JSON.parse(message.data)) send: (message) -> @socket.send(JSON.stringify(message))
Version data entries
38 entries across 38 versions & 4 rubygems