Coder Social home page Coder Social logo

how can I send data using emit function and how to receive the data using the socket.on ack is there a way to send data and receive using webRTC-iOS please reply about webrtc-ios HOT 5 CLOSED

stasel avatar stasel commented on August 15, 2024
how can I send data using emit function and how to receive the data using the socket.on ack is there a way to send data and receive using webRTC-iOS please reply

from webrtc-ios.

Comments (5)

stasel avatar stasel commented on August 15, 2024

Hello @ShaikBaji1911
Please edit the issue: Add a description and make the title shorter.
As for your question I am not entirely understand what is the issue. I'll try to answer:

how can I send data using emit function

What emit function do you mean? There is no emit function in the code base

how to receive the data using the socket.on ack

Information about the socket library used in the project can be found here

is there a way to send data and receive using webRTC-iOS

Yes, it's called data channels and is demonstrated in this project

from webrtc-ios.

ShaikBaji1506 avatar ShaikBaji1506 commented on August 15, 2024

I am asking can we send data and receive data after connecting to socket ?

from webrtc-ios.

stasel avatar stasel commented on August 15, 2024

Please look at the code and Starscream documentation for more details

from webrtc-ios.

ShaikBaji1506 avatar ShaikBaji1506 commented on August 15, 2024

I haven't found any function for passing the data and receiving the data can you please help me how to send data and retrieve after connecting to the socket I think in webSocket we can't able to send data but using socket.io library we can send I guess

from webrtc-ios.

stasel avatar stasel commented on August 15, 2024

To receive data, implement websocketDidReceiveData on your WebSocketDelegate.
To Send data, use write method on your WebSocket instance.

Since this issue is not related directly to the WebRTC demo app, It has been closed.
If you have any further question about how to use websockets, please try asking them in Starscream github repo.

from webrtc-ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.