Closed lucasjinreal closed 1 year ago
首先,你这样描述问题我们看不出任何东西。 其次,这很明显是一个使用空指针的问题。你自己调试下看看哪个对象为空。 最后,我建议你先把go用熟了,把一些基础先打牢。
@werbenhu thanks for the suggestions, what's the difference of onPublish
and onPublished
?
what should to override if I want inceptor the message (maybe change the content of payload)?
@werbenhu Hi, I debugged a little bit found the nil comes from the Server I use h.config.Server
which suggested in example code. I want using Server to Publish in onPublish
method.
can u help why it nil here? at 70 lines of hook.go
found the reason.
what's wrong here when I try to
Something like this?