guacamole-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amarjeet Singh <amarjee...@gmail.com>
Subject Re: Virtual or Dyanmic Channels support
Date Sun, 12 Nov 2017 05:07:01 GMT
Hi Mike,

I really appreciate the guidance you have provided me which helped me alot.

Now, it's working Below is the handling I have done :-

client.onpipe = function(input_stream, mimetype, name) {
>
> if (name == "hyprint") {
>
> reader = new Guacamole.ArrayBufferReader(input_stream);
> reader.ondata = function(buffer) {
> var data = new Int16Array(buffer)
> console.log(buffer);
> var str = new Uint8Array(buffer);
> var rdpdata = str.slice(0,10);
> console.log(rdpdata);
> }


Thanks Mike. Have a Great Day !! :)


Regards,
Amarjeet Singh

On Sun, Nov 12, 2017 at 3:54 AM, Mike Jumper <mike.jumper@guac-dev.org>
wrote:

> On Sat, Nov 11, 2017 at 4:51 AM, Amarjeet Singh <amarjeetxc@gmail.com>
> wrote:
>
>> ...
>>>
>>> *Nov 11 07:46:04 localhost guacd[7887]: Inbound half of channel
>>> "hyprint" connected.*
>>
>>
> This is not an error, but an informative message that the inbound pipe
> stream (the pipe from the browser to the server) for your channel has been
> connected. It is being logged at the wrong log level, but is not an error.
>
>
>> When I am printing the document on server side using this module. i am
>> not receiving any data?
>>
>> client.onpipe = function(input_stream, mimetype, name) {
>>>
>>> reader = new Guacamole.StringReader(input_stream);
>>> reader.ontext = function(text) {
>>> // Handle input here
>>> };
>>>
>>
>>
> What makes you think you're not receiving any data? The example code
> you've provided here is explicitly not handling any data (it has
> placeholder comments where the necessary code would need to go). Assuming
> you're using this code as-is, you would have no indication regarding
> whether data is being received or not. Received data would be silently
> discarded.
>
> - Mike
>
>

Mime
View raw message