azure-functions-signalrserv.../binding-library/java
Chenyang Liu 415e35d9cb
Add connection id related apis (#68)
* Add connection id related apis

* Update to resolve parameter order

* Add sample with connectionId APIs

* Encode the connectonId
2019-07-22 15:18:54 +08:00
..
src/main/java/com/microsoft/azure/functions/signalr Add connection id related apis (#68) 2019-07-22 15:18:54 +08:00
README.md Add Azure Function Java support binding library (#48) 2019-02-26 10:56:17 +08:00
pom.xml add java scm for release required 2019-02-28 13:01:54 +08:00

README.md

SignalR Service Library for Azure Java Functions

This repo contains SignalR serivce library for building Azure Java Functions. Visit the complete documentation of Azure Functions - Java Developer Guide for more details.

Prerequisites

Sample

Here is an example of a HttpTrigger Azure function using SignalR service in Java:

package com.example;

import com.microsoft.azure.functions.*;
import com.microsoft.azure.functions.annotation.*;
import com.microsoft.azure.functions.signalr.*;
import com.microsoft.azure.functions.signalr.annotation.*;

public class Functions {
    @FunctionName("negotiate")
    public SignalRConnectionInfo negotiate(
            @HttpTrigger(
                name = "req", 
                methods = { HttpMethod.POST, HttpMethod.GET },
                authLevel = AuthorizationLevel.ANONYMOUS) 
                HttpRequestMessage<Optional<String>> req,
            @SignalRConnectionInfoInput(name = "connectionInfo", hubName = "simplechat") SignalRConnectionInfo connectionInfo) {
                
        return connectionInfo;
    }
}|

Take a look at SimpleChatRoom for other using cases.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.