YM
Size: a a a
YM
YM
ОС
DD
IS
У
H
class ChatPage extends StatefulWidget {
final WebSocketChannel channel = IOWebSocketChannel.connect(
Uri(scheme: "ws", host: "localhost", port: 8080, path: "/api/socket"),
headers: {'token': getToken()}
);
static Future<String> getToken() async {
final String contents = await File('/Users/macbook/AndroidStudioProjects/anonapp_mobile/assets/config/token').readAsString();
print(contents);
return contents;
}
//some code...
}
class _ChatPageState extends State<ChatPage> {
//some code...
}
DD
У
У
DD
RK
E
🤸К
DD
RB
АМ
В
Аp
E