[PAID]SocketIO Client Extension

Write a short description

SocketIO Client Extension could be used to make a real-time chat/game app, to record online users amount or user name list, and more

Add a picture of all the blocks

Connect

to connect to a server url, if successful, this will fire “Connected” event.

2019-12-28_181417

disconnect

to disconnect from server manually. this will fire “Disconnected” event. And other user will get “OtherLogedout” event. If goes wrong when trying to connect, this event will also be fired.
2019-12-28_182458

login

to login to the server with a username, this will fire “Logedin” event, and other user will get “OtherLogedin” event.
2019-12-28_182605

joinroom

to join a room, this will fire “JoinedRoom” event, and other user in this room will get “OtherJoinedRoom” event.

One user can join more than one room.

2019-12-28_182641

leaveroom

to leave a room. Other user in this room will get “OtherLeftRoom” event. If you are in some rooms and disconnected, other users in these rooms will also get this event.

2019-12-28_182720

send private message

to send a message to one single user, and the receiver will get “GotPrivateMessage” event

2019-12-28_182750

send public message

to send a message to public, all the user connected to server (not including the sender) will get “GotPublicMessage” event

2019-12-28_182840

send room message

to send a message to users in a room, all the user in the room (not including the sender) will get “GotRoomMessage” event

2019-12-28_182913

got error

when you got some error

2019-12-28_182952

Demo1 apk for chat room

SocketIO_ext.apk (5.1 MB)

Demo2 how to check online users number

Other stuff

please check my website: http://www.kevinkun.cn/socketio.html for how to setup a backend server.

How to pay

  • by PayPal. Please remember to send me email (No personal info on the community, send a pm) for the aix file after payment.
  • or, by Wechat or Alipay, you can pay at here.
9 Likes

I think this is very useful. Tryin to learn more…

Why would anyone use this over a Firebase Realtime Database? :sweat_smile:

1 Like

first, not all people can access to firebase,
second, it’s special for chatting,
third but not least, it’s extendable, for diffirent envent… :grinning:

1 Like

Yes and no, SocketIO can be used everywhere who need to send data between server and client instantly. :sweat_smile: Chat is just a example scenario here.

From Socket.IO docs:

Socket.IO is a library that enables real-time, bidirectional and event-based communication between the browser and the server.
(“browser” means client here.)

However it would be nice to see a full implemented SocketIO component to the App Inventor. Because looks like this extension won’t work with other SocketIO projects which is not related with chat.

3 Likes

Another great extension!