Skip to content

An ease way to send and get response from socket in one request

Notifications You must be signed in to change notification settings

Pedroxam/react-socket-callback

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

react-socket-callback

An easy way to send and get response from socket in one request

import SocketData from "./client/socket";

Example:

  
//Data To Send  
var data = {
    option: 1,
    option: 2
}
  
SocketData(data, function(result) {
      console.log(result); // Get socket result in here
});

About

An ease way to send and get response from socket in one request

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published