| 372 | } |
| 373 | |
| 374 | void ConsoleServer::error(u32 client_id, const char *msg) |
| 375 | { |
| 376 | TempAllocator4096 ta; |
| 377 | StringStream ss(ta); |
| 378 | ss << "{\"type\":\"error\",\"message\":\"" << msg << "\"}"; |
| 379 | send(client_id, string_stream::c_str(ss)); |
| 380 | } |
| 381 | |
| 382 | void ConsoleServer::broadcast(const char *json) |
| 383 | { |
no outgoing calls
no test coverage detected