(format string, args ...interface{})
| 58 | func (*ServerImpl) WshServerImpl() {} |
| 59 | |
| 60 | func (impl *ServerImpl) Log(format string, args ...interface{}) { |
| 61 | if impl.LogWriter != nil { |
| 62 | fmt.Fprintf(impl.LogWriter, format, args...) |
| 63 | } else { |
| 64 | log.Printf(format, args...) |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | func (impl *ServerImpl) MessageCommand(ctx context.Context, data wshrpc.CommandMessageData) error { |
| 69 | impl.Log("[message] %q\n", data.Message) |
no outgoing calls