Skip to content
GitLab
    • Explore Projects Groups Snippets
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A AndroidAsync
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 333
    • Issues 333
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 19
    • Merge requests 19
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Koushik Dutta
  • AndroidAsync
  • Merge requests
  • !139

Support SocketIO path

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/crossle/master into master 11 years ago
  • Overview 3
  • Commits 2
  • Pipelines 0
  • Changes 1

Created by: crossle

Socket.io use socket.io as default path, now support more path

Compare
  • master (base)

and
  • latest version
    23a0ef2a
    2 commits, 2 years ago

1 file
+ 11
- 3

    Preferences

    File browser
    Compare changes
AndroidAsync/src/com/koushikdutta/async/http/socketio/SocketIORequest.java
+ 11
- 3
  • View file @ 23a0ef2a


@@ -23,10 +23,18 @@ public class SocketIORequest extends AsyncHttpPost {
public SocketIORequest(String uri, String endpoint) {
this(uri, endpoint, null);
}
public SocketIORequest(String uri, String endpoint, String query) {
super(Uri.parse(uri + (query == null ? "" : "?" + query)).buildUpon().encodedPath("/socket.io/1/").build().toString());
public SocketIORequest(String uri, String path, String endpoint, String query) {
super(Uri.parse(uri + (query == null ? "" : "?" + query)).buildUpon().encodedPath(getPath(path)).build().toString());
this.endpoint = endpoint;
this.query = query;
}
public SocketIORequest(String uri, String endpoint, String query) {
this(uri, null, endpoint, query);
}
private static String getPath(String path) {
return TextUtils.isEmpty(path) ? "/socket.io/1/" : "/" + path + "/1/";
}
}
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Labels
0
None
0
None
    Assign labels
  • Manage project labels

Milestone
No milestone
None
None
Time tracking
No estimate or time spent
Lock merge request
Unlocked
2
2 participants
Administrator
Koushik Dutta
Reference: koush/AndroidAsync!139
Source branch: github/fork/crossle/master

Menu

Explore Projects Groups Snippets