Skip to content

Commit c587ee4

Browse files
andrewgithubandrewgithub
andrewgithub
authored and
andrewgithub
committed
增加websocket的客户端和服务器端代码
1 parent eadab5f commit c587ee4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/json_proxy.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class JsonProxy {
2121

2222
JsonProxy(std::string& path, std::string& filename) {
2323
std::string file = path + filename;
24-
std::ofstream(file) << jsonObj;
24+
std::ifstream(file) >> jsonObj;
2525
}
2626

2727
explicit JsonProxy(std::string& filename) {}

0 commit comments

Comments
 (0)