Alexey Cherepanov
Alexey Cherepanov
This is the quick solution I'm using currently, overriding the `Turbo::Streams::ActionBroadcastJob` job, as pointed by dhh in https://github.com/hotwired/turbo-rails/issues/190 ```ruby class Turbo::Streams::ActionBroadcastJob < ApplicationJob def perform(stream, action:, target:, **rendering) rendering[:locals]&.transform_values! do...
Though, it works fine when dealing with SubmitSM PDU: ```go p := pdu.NewSubmitSM() ``` ``` $ go run smpp_sample.go INITIAL PDU: 0000003b000000040000000000000001000000544553540000002b3739303030303035353535000000000000000008000a00480065006c006c006f DECODED PDU: 0000003b000000040000000000000001000000544553540000002b3739303030303035353535000000000000000008000a00480065006c006c006f INITIAL SM: 00480065006c006c006f DECODED SM:...
What I found at the moment, that it somehow refers to UDH parsing. Since when I'm removing `UDHLength` from `pdufield.List` in `newDeliverSM`, it decodes the example PDU just fine. https://github.com/fiorix/go-smpp/blob/8eb557099ddf995af5b778652b1812f1ff86889c/smpp/pdu/types.go#L311...
This dirty hack seems to fix the problem, but I'm really not sure if it breaks something with an actual UDH. ```go // smpp/pdu/codec.go // SerializeTo implements the PDU interface....
Sure :) ```ruby Net::Telnet::new("Host" => "localhost") { |telnet| p telnet.cmd "hostname" } ```
You didn't define neither prompt nor match pattern for your `cmd`. Take a look at the example in README.