Example #1
0
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
}
Example #2
0
func (h *connHandler) onRequest(callback float64, r *amf0.Reader) error {
	rpc.Call(h.session.xid, h.session.raddr, callback, r.Bytes(), true)
	return nil
}