Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 336 Bytes

File metadata and controls

23 lines (14 loc) · 336 Bytes

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
});