All Projects → infitio → Flutter_socket_io

infitio / Flutter_socket_io

Licence: other
Socket IO supprt for flutter. Looking for contributors Swift and Java.

Programming Languages

dart
5743 projects

Projects that are alternatives of or similar to Flutter socket io

Embedded Jetty Websocket Examples
Embedded Jetty WebSocket Examples
Stars: ✭ 159 (-6.47%)
Mutual labels:  websocket, websocket-client
Libhv
🔥 比libevent、libuv更易用的国产网络库。A c/c++ network library for developing TCP/UDP/SSL/HTTP/WebSocket client/server.
Stars: ✭ 3,355 (+1873.53%)
Mutual labels:  websocket, websocket-client
Chat Engine
Object oriented event emitter based framework for building chat applications in Javascript.
Stars: ✭ 87 (-48.82%)
Mutual labels:  websocket, socket-io
Laverna
Laverna is a JavaScript note taking application with Markdown editor and encryption support. Consider it like open source alternative to Evernote.
Stars: ✭ 8,770 (+5058.82%)
Mutual labels:  websocket, socket-io
Light Push
轻量级推送服务和实时在线监控平台,同时用于开发即时通信系统,基于node的socket.io,支持web、android、ios客户端,支持移动端离线推送,可进行分布式部署
Stars: ✭ 128 (-24.71%)
Mutual labels:  websocket, socket-io
Sketchpad
Sketchpad is fully customisable collaborative whiteboard plugin written in pure JavaScript.
Stars: ✭ 85 (-50%)
Mutual labels:  websocket, websocket-client
Itunes Remote
Remotely control iTunes on Mac without Internet 🎶📱
Stars: ✭ 160 (-5.88%)
Mutual labels:  websocket, socket-io
Tyloo Chat
vue + nestjs IM即时通讯聊天室(仿wechat)
Stars: ✭ 54 (-68.24%)
Mutual labels:  websocket, socket-io
Tap Tap Adventure
Tap Tap Adventure is a massively online 2D MMORPG set in the medieval times with twists.
Stars: ✭ 123 (-27.65%)
Mutual labels:  websocket, socket-io
Node Multiple Rooms Chat
node socket.io multiple room chat demo
Stars: ✭ 118 (-30.59%)
Mutual labels:  websocket, socket-io
Deno Websocket
🦕 A simple WebSocket library like ws of node.js library for deno
Stars: ✭ 74 (-56.47%)
Mutual labels:  websocket, websocket-client
Poloniex Api Node
Poloniex API client for REST and WebSocket API
Stars: ✭ 138 (-18.82%)
Mutual labels:  websocket, websocket-client
Socketio Examples
A few examples that demonstrate the features of the Python Socket.IO server
Stars: ✭ 72 (-57.65%)
Mutual labels:  websocket, socket-io
Arduinowebsockets
arduinoWebSockets
Stars: ✭ 1,265 (+644.12%)
Mutual labels:  websocket, websocket-client
Recws
Reconnecting WebSocket is a websocket client based on gorilla/websocket that will automatically reconnect if the connection is dropped and keeps the connection alive - thread safe!
Stars: ✭ 60 (-64.71%)
Mutual labels:  websocket, websocket-client
T Io
解决其它网络框架没有解决的用户痛点,让天下没有难开发的网络程序
Stars: ✭ 1,331 (+682.94%)
Mutual labels:  websocket, websocket-client
Beaver
💨 A real time messaging system to build a scalable in-app notifications, multiplayer games, chat apps in web and mobile apps.
Stars: ✭ 1,056 (+521.18%)
Mutual labels:  websocket, socket-io
Websocket
A PHP implementation of WebSocket.
Stars: ✭ 54 (-68.24%)
Mutual labels:  websocket, websocket-client
Php Wss
Web-socket server/client with multi-process and parse templates support on server and send/receive options on client
Stars: ✭ 117 (-31.18%)
Mutual labels:  websocket, websocket-client
Bolt Js
A framework to build Slack apps using JavaScript
Stars: ✭ 1,971 (+1059.41%)
Mutual labels:  websocket, websocket-client

adhara_socket_io

socket.io for flutter by adhara

supports both Android and iOS

Usage:

See example/lib/main.dart for better example

	Future<void> socketConfig() async {
		SocketIOManager manager = SocketIOManager();
		SocketIO socket = await manager.createInstance('http://192.168.1.2:7000/');       //TODO change the port  accordingly
		socket.onConnect((data){
		  print("connected...");
		  print(data);
		  socket.emit("message", ["Hello world!"]);
		});
		socket.on("news", (data){   //sample event
		  print("news");
		  print(data);
		});
		socket.connect();
		///disconnect using
		///manager.
	}

	socketConfig();

To request callback on ack:

  socket.emitWithAck("message", ["Hello world!"]).then( (data) {
    // this callback runs when this specific message is acknowledged by the server
    print(data);
  });

Running example:

  1. Open example/ios in XCode or example/android in android studio. Build the code once (cd example & flutter build apk | flutter build ios --no-codesign)

  2. cd example/socket.io.server

    1 run npm i

    2 run npm start

  3. open example/lib/main.dart and edit the URI in #7 to point to your hosted/local socket server instances as mentioned step 2

    For example:

    const String URI = "http://192.168.1.2:7000/";
    
    const String URI = "http://mysite.com/";
    
  4. run Android/iOS app

iOS support 📢📢

This project uses Swift for iOS support, please enable Swift support for your project for this plugin to work

Android support for SDK > 27

Configure android:usesCleartextTraffic="true" as a property of <application ...> tag in android/app/src/main/AndroidManifest.xml

For example:

<application
        android:name="io.flutter.app.FlutterApplication"
        android:label="adhara_socket_io_example"
        android:usesCleartextTraffic="true"
        android:icon="@mipmap/ic_launcher">
        <activity
            android:name=".MainActivity"...>...</activity>

Refer to discussion here

Sample Video - Running the example

Running adhara socket io for flutter, example

FAQ's

AdharaSocketIoPlugin.m:2:9: fatal error: 'adhara_socket_io/adhara_socket_io-Swift.h' file not found

add use_frameworks! to your Podfile as in the example https://github.com/infitio/flutter_socket_io/blob/master/example/ios/Podfile#L30

Read more about this discussion

Other Packages:

Feel free to checkout our Adhara package

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].