2.1.4 • Published 4 years ago
itoeste-socket v2.1.4
example:
import SocketConnection from "itoeste-socket"
const socket = SocketConnection({
debug:true || false,
token:"XXXXXXXXXXXXXXXXXXXXXXXXXXX"
},(data)=>{
callback conection status
});
let channel = socket.subscribeChannel('test',(data)=>{
console.log("test",data) })
log error
socket.sendError({
type : 'Http' || 'Sys' (string),
status: 400 , 500 , 404 (number),
mode:'Client' || 'Server' || 'App ' (string),
message: "custom error description" (TEXT),
url:"http://example.com/test" (string)(optional),
dataUrl:{
method:"GET" || "POST",
data:{parameters : "test"},
headers:{"Content-type": "application/json"}
} (JSON)(optional)(custom)
})
2.1.4
4 years ago
2.1.3
4 years ago
2.1.2
4 years ago
2.1.1
4 years ago
2.1.0
4 years ago
2.0.0
5 years ago
1.0.11
5 years ago
1.0.10
5 years ago
1.0.12
5 years ago
1.0.9
5 years ago
1.0.8
5 years ago
1.0.7
5 years ago
1.0.6
5 years ago
1.0.5
5 years ago
1.0.4
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago