This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import ballerina.net.http; | |
| import ballerina.io; | |
| endpoint http:ServiceEndpoint passthruEP { | |
| port:9090 | |
| }; | |
| endpoint http:ClientEndpoint httpClient { | |
| targets: [{uri: "http://www.mocky.io"}]}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import ballerina.net.http; | |
| import ballerina.io; | |
| import ballerina.runtime; | |
| endpoint<http:Service> passthruEP { | |
| port:9090 | |
| } | |
| endpoint< http:Client> backendClientEP { | |
| serviceUri: "http://www.mocky.io" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import ballerina/io; | |
| import ballerina/log; | |
| import ballerina/http; | |
| int currentCaseId = 0; | |
| int caseCounts = 0; | |
| string ws_uri = "ws://localhost:9001"; | |
| public function main() { | |
| openWebSocket(ws_uri + "/getCaseCount"); | |
| //openWebSocket(ws_uri + "/updateReports?agent=ballerinax"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import ballerina.net.http; | |
| import ballerina.io; | |
| import ballerina.runtime; | |
| endpoint http:ServiceEndpoint ep1 { | |
| port:9090 | |
| }; | |
| @http:WebSocketServiceConfig { | |
| basePath:"/basic/ws" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT VALUE {"Length": st_length(geo.myGeometry), "Boundary":st_boundary(geo.myGeometry)} FROM Geometries geo WHERE geometry_type(geo.myGeometry)="LineString" OR geometry_type(geo.myGeometry)="MultiLineString"; |
NewerOlder