func (h *streamHandler) onProxySend(callback float64, r *amf0.Reader, reliable bool) error { rpc.Call(h.session.xid, h.session.raddr, 0, r.Bytes(), reliable) return nil }
func (h *connHandler) onRequest(callback float64, r *amf0.Reader) error { rpc.Call(h.session.xid, h.session.raddr, callback, r.Bytes(), true) return nil }