Skip to content

isurugajasinghe/react-native-pure-socket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

react-native-pure-socket

Currently this project support to iOS only MySocketSingleton .h and .m file import to the your xcode project and then import index.js into react-native project

then import to your component...

import TestSocket from '..//index'

export class Example extends Component {

//init the socket ... var socket = new TestSocket('127.0.0.1',8080)

// Emit an event to server socket.sendMessage("hello world :)")

// Called when anything is emitted by the server socket.onAny((event) => { console.log(called with data: , event); });

}

Android comming soon ...! :) Thank you

About

Currently this project support only for iOS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published