|
@@ -15,7 +15,7 @@ public class {{ .|call:file,service,method }} {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/// Call this to send each message in the request stream. Nonblocking.
|
|
/// Call this to send each message in the request stream. Nonblocking.
|
|
|
- public func send(_ message:Echo_EchoRequest, errorHandler:@escaping (Error)->()) throws {
|
|
|
|
|
|
|
+ public func send(_ message:{{ method|input }}, errorHandler:@escaping (Error)->()) throws {
|
|
|
let messageData = try message.serializedData()
|
|
let messageData = try message.serializedData()
|
|
|
try call.sendMessage(data:messageData, errorHandler:errorHandler)
|
|
try call.sendMessage(data:messageData, errorHandler:errorHandler)
|
|
|
}
|
|
}
|