2.1.4 • Published 3 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
3 years ago
2.1.3
3 years ago
2.1.2
3 years ago
2.1.1
3 years ago
2.1.0
3 years ago
2.0.0
3 years ago
1.0.11
3 years ago
1.0.10
3 years ago
1.0.12
3 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago