Safe to create websocket on UI thread?

3 views
Skip to first unread message

xkrja

unread,
Dec 8, 2011, 6:01:35 AM12/8/11
to unitt-project
As the header says: Is it safe to create the websocket and implement
the websocketobserver on the UI thread or can the UI thread be blocked
by doing that?

(I'm using the Unitt-Websocket on Android)

Thanks for help!

Josh Morris

unread,
Dec 19, 2011, 6:19:25 PM12/19/11
to unitt-project
You generally want to avoid putting any business logic in your UI
thread. I think this is especially true for network libraries, such as
web sockets. :)
Reply all
Reply to author
Forward
0 new messages